PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 31, 2022

[FIXED] Trying to install Symfony 2.3 but it keeps installing 2.4

 January 31, 2022     composer-php, php, symfony     No comments   

Issue

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?


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.*


Answered By - Maerlyn
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing