Question

I'm creating a project that is going to be around for a long time, so I like the look of Symfony 2.3 LTS.

I did this in Composer, but it installed 2.4.2 instead:

php composer.phar create-project symfony/framework-standard-edition 2.3.12

I then checked the composer.json and saw:

"symfony/symfony": "~2.4",

I changed that to 2.3 and ran an update but all sorts of errors prevented me.

How do I install 2.3 LTS?

Was it helpful?

Solution

A simple mistake: you're adding 2.3.12 as the path to create the project in, not the version constraint. Try this command:

composer create-project symfony/framework-standard-edition /path/to/project 2.3.*
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top