Symfony installation
The simplest way to install symfony is to use the PEAR package. However, to be able to use channels - and access the symfony channel - you need to upgrade to PEAR 1.4.0 or greater (unless you run PHP 5.1.0, which includes PEAR 1.4.5):
$ pear upgrade PEAR
if you experience any problem while using PEAR, refer to the Running symfony book chapter.
Now you can add the 'symfony' channel:
$ pear channel-discover pear.symfony-project.com
You are ready to install the latest stable version of symfony together with all its dependencies:
$ pear install symfony/symfony
If a specific version is desired, say 1.0.11, it can be specified as follows:
$ pear upgrade symfony/symfony-1.0.11
Check that symfony is installed by using the command line to check the version (note capital -V):
$ symfony -V
If you are curious about what this new command line tool can do for you, type symfony -T
to list the available options. You might also want to read the Running symfony book chapter to see how to install symfony from a tgz archive or the svn repository. A community contribution also details a non-PEAR installation in the symfony wiki .