Using the Symfony
full-stack framework

First, install the Symfony Installer. Then, execute this command:

The Symfony Installer is a small PHP application that must be installed once in your computer. It greatly simplifies the creation of new projects based on the Symfony framework.

Installation on Linux and Mac OS X
$ sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony
$ sudo chmod a+x /usr/local/bin/symfony
Installation on Windows
c:\> php -r "readfile('http://symfony.com/installer');" > symfony

Move the downloaded file to your projects directory and execute it as php symfony.

$ symfony new my_project
$ symfony new my_project 2.3
Don't miss any updates! Subscribe to our notification service and receive an email as soon as a new Symfony version is published.
Free and Open Source Symfony code is published under the MIT license, which is friendly for developers and safe for businesses.

Using the Symfony
components

Symfony framework is built on top of a set of decoupled and reusable PHP components called Symfony Components. They are becoming the standard foundation on which the best PHP applications are built on. You can use any of these components on your own applications independently from the framework.

Adding a Symfony Component to your application:

$ composer require

This requires to have installed Composer first. How to install it?

Composer is the package manager used by modern PHP applications.

Installation on Linux and Mac OS X

Execute the two following commands:

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
Installation on Windows

Download the installer from getcomposer.org/download

Download Symfony Distributions Check out our distributions ready for REST and CMS applications.
Download Legacy Versions Download Symfony 1.x for your legacy projects and applications.