Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Symfony 2.7?

The latest stable release of Symfony is 2.6.6 However, I would like to add some code to a core component. I have forked the repo and can clone it locally, but it is only the Symfony core. I need the full framework complete with AcmeDemoBundle so that I can run and test any changes.

The Symfony page recommends using the installer, but that only works for stable releases. On the same page, it gives the composer method of installing, but composer cannot find a 2.7 version.

How can I install the (currently dev) Symfony 2.7 framework-standard?

like image 975
Twifty Avatar asked Apr 06 '15 16:04

Twifty


People also ask

How do I run an existing Symfony project?

Running your Symfony ApplicationOpen your browser and navigate to http://localhost:8000/ . If everything is working, you'll see a welcome page. Later, when you are finished working, stop the server by pressing Ctrl+C from your terminal.

Is Symfony still used?

Symfony is a feature-rich back-end framework that is used to build complex applications. Many developers still prefer the lightweight Silex micro-framework or the Symfony MicroKernel, and Symfony is a widely used application framework among open-source developers.

How do I get Symfony version?

If you have file system access to the project Look inside the file for a line like: const VERSION = '5.0. 4'; that's the Symfony version number.


2 Answers

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.

like image 118
Tomas Votruba Avatar answered Nov 01 '22 12:11

Tomas Votruba


 composer create-project symfony/framework-standard-edition project_name '2.7.*@dev'
like image 43
Cristian Gonzales Avatar answered Nov 01 '22 12:11

Cristian Gonzales