Install Symfony2 on localhost
Using composer over console
Now you can create a new Symfony project with composer:
This will create the project in the current directory you're in.
If you want to create the project with a specific version of Symfony, you can add a parameter with the version number:
Hint: If you're thinking that composer won't do anything, add the
-vvv flag to the command. That way, you'll receive detailed information about what composer is doing right now.
Using the command prompt
The best way to install and configure a Symfony2 project is described in the official documentation as follows:
Mac OS X / Linux
Then you could use the Symfony binary to build the right scaffolding: