I’m learning symfony 6 I wanted to create my first project but it didn’t work. I have installed php8, symfony, composer, scoot, in their latest version. when I created the project with this command "symfony new my_project_directory –version="6.3." –webapp" I got this error "unable to run C:Usersriro6scoopappscomposer currentcomposer.phar create-project symfony/skeleton C:Usersriro
6DocumentsPHP languageSymfonytutorial-u 6.3. –no-interaction"
I can’t understand the problem. in advance thank you.
I checked all the versions of php, symfony, composer, scoot, everything is good.
2
Answers
To initialize a new project you may run the command below in the folder you want to create your new project:
Replace
[projectName]
by the name of your project (and not the project directory) and replace[options]
by –webapp as you consider using this option.Other options may be interesting such as –docker (Symfony will auto add Docker services based on required packages) and –cloud (Auto generates a sensible Platform.sh configuration).
Use composer to install Symfony 6.
composer create-project symfony/skeleton:"6.3.*" my_project_directory