Installing console with php 8

in flag

I'm trying to install Drupal Console into a Drupal 9 installation, and get a php compatibility error:

% composer require drupal/console \
--prefer-dist \
--optimize-autoloader \
--sort-packages \

drupal/console[v1.9.0, ..., 1.9.4] require php ^5.5.9 || ^7.0 -> your php version (8.0.8) does not satisfy that requirement.

Is Console compatible with Drupal 8? Is there a workaround?

cn flag
What are you using console for these days? Last I heard (a while ago) it was obsolete
Kevin avatar
in flag
AFAIK Drush 10+ does just about everything.
cn flag
Yeah since the generate commands got moved into drush I'm not sure there's a lot of use for console these days (I never used it that much so could be wrong there)
id flag
Also, Drupal 8 is end of life as of November 2021.
pglatz avatar
in flag
Thanks for the suggestions - I agree drush is quite powerful and probably don't need console. I just wanted to check it out a lot documentation suggest(ed) using it.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.