if you have this error

Failed to download symfony/website-skeleton from dist: The zip extension and unzip command are both missing, skipping.
The php.ini used by your command-line PHP is: C:\wamp64\bin\php\php8.2.1\php.ini

and may be :

Your requirements could not be resolved to an installable set of packages.

or may be

The package is not available in a stable-enough version according to your minimum-stability setting

or this one:

unable to run composer.phar create-project symfony/website-skeleton ... --no-interaction

Now try this command

symfony check:requirements

if you have no env problems and you fulfill all requirements you will have this « OK » text:

> Checking Symfony requirements:

..................W..........

[OK] Your system is ready to run Symfony projects
Optional recommendations to improve your setup

if you have « KO » so you should see this article to configure your env https://www.trywithgeek.com/symfony-your-requirements-could-not-be-resolved-to-an-installable-set-of-packages/

in the case of OK you should just activate zip extension from php.ini

so go to php folder and edit this line in your php.ini file like this:

;...
;extension=xsl
extension=zip
...

save and retry to create new project with symfony command

hope i helped

thank you

Aller au contenu principal