Symfony is a PHP Web Development Framework.

Symfony is a framework, a set of tools and a development methodology.

Beyond the tools, Symfony is also a Philosophy and a Community.



First, check that you have installed and configured a Web server (such as Apache) with PHP 5.3.8 or higher. For more information on Symfony2 requirements, see the requirements reference.

Start by visiting the Symfony2 download page at On this page, you’ll see the Symfony Standard Edition, which is the main Symfony2 distribution. There are 2 ways to get your project started:

Symfony installation and Configuration

Method 1 :

Composer is a dependency management library for PHP, which you can use to download the Symfony2 Standard Edition.

curl -s | php

Composer is an executable PHAR file, which you can use to download the Standard Distribution

php composer.phar create-project symfony/framework-standard-edition <symfony install path>


php composer.phar create-project symfony/framework-standard-edition /home/user/public_html/symfony

This command may take several minutes to run as Composer downloads the Standard Distribution along with all of the vendor libraries that it needs. Update database details, mailer details while this process.

Once completed,

updated your ISP ipaddress in web/config.php , web/app_dev.php in the top of remotehost

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'your isp ip address',

browse config.php file to Configuration and Setup.

Configure your Symfony Application online or Bypass configuration and go to the Welcome page

Thats all…

Method 2 :

Download an Archive

You can also download an archive of the Standard Edition. Here, you’ll need to make two choices:

Download either a .tgz or .zip archive – both are equivalent, download whatever you’re more comfortable using;
Download the distribution with or without vendors. If you’re planning on using more third-party libraries or bundles and managing them via Composer, you should probably download “without vendors”.

Goto your installation path

# for .tgz file
$ tar zxvf Symfony_Standard_Vendors_2.3.###.tgz

# for a .zip file
$ unzip

updated your ISP ipaddress in web/config.php , web/app_dev.php in the top of remotehost

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'your isp ip address',

browse config.php file and update.

Updating Vendors

Depending on how you downloaded Symfony, you may or may not need to update your vendors right now. But, updating your vendors is always safe, and guarantees that you have all the vendor libraries you need.

Step 1: Get Composer (The great new PHP packaging system)

curl -s | php

Make sure you download composer.phar in the same folder where the composer.json file is located (this is your Symfony project root by default).

Step 2: Install vendors

$ php composer.phar install

This command downloads all of the necessary vendor libraries – including Symfony itself – into the vendor/ directory.


Get more cPanel Knowledgebase

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

5.00 avg. rating (95% score) - 1 vote
Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive