How to install Symfony 2.7?
As symfony/framework-standard-edition is not a typical dependency but used to bootstrap projects, it's best to install it via the create-project command:
composer create-project symfony/framework-standard-edition project_name
If you want a 2.7 version you would typically do this:
composer create-project symfony/framework-standard-edition project_name '2.7.*'
However since at the time of this writing there is no 2.7 stable, you need to lower the stability to dev:
composer create-project symfony/framework-standard-edition project_name '2.7.*' -s dev
-s
being short for --stability
.
composer create-project symfony/framework-standard-edition project_name '2.7.*@dev'
When I try to execute the following command
composer create-project symfony/framework-standard-edition project_name '2.7'
composer return this error:
[UnexpectedValueException]Could not parse version constraint '2.7': Invalid version string "'2.7'"
You should install without single cotes:
composer create-project symfony/framework-standard-edition project_name 2.7