Table of Contents
brief installation instruction
http://www.symfony-project.org/content/download.html
detailed installation instruction from symfony book
http://www.symfony-project.org/book/trunk/installation
You can choose between several alternatives to install symfony, from the simplest to the most advanced one.
The PEAR installation is for those who want to run several symfony-based projects, with an easy way to upgrade. It requires PEAR version 1.4.0 or higher, which is bundled in most PHP distributions.
The first thing to do is to add the 'symfony' channel:
pear channel-discover pear.symfony-project.org
Optionally, to see the libraries available in this channel:
pear remote-list -c symfony
Then, to install the latest stable release and all its dependencies with:
pear install symfony/symfony
or to install the nightly release:
pear install symfony/symfony-beta
Symfony needs a few other packages to run; some are included in the installation, and some require you to install them if they are not present. Especially, to install Phing:
pear channel-discover pear.phing.info pear install phing/phing
That's it: symfony is installed. You may now create a new project with the new command line tool symfony and use the classes and methods of the libraries.
To have a glimpse of all the tasks that you can perform directly with the command-line tool, type:
symfony -T
PEAR also provides an easy way to upgrade symfony, for instance to get the latest beta version:
pear upgrade symfony/symfony-beta
From latest beta upgrade to latest stable:
pear upgrade -f symfony/symfony
Check version:
$ symfony -V symfony version 1.0.0-rc2
Get more info:
pear info symfony/symfony
To uninstall:
pear uninstall symfony/symfony
![]() | |
channel "pear.symfony-project.org" has updated its protocols, use "channel-update pear.symfony-project.org" to update |
$ pear channel-update pear.symfony-project.org Retrieving channel.xml from remote server Channel pear.symfony-project.org channel.xml is up to date
% pear channel-discover pear.symfony-project.org Adding Channel "pear.symfony-project.org" succeeded Discovery of channel "pear.symfony-project.org" succeeded % pear install symfony/symfony downloading symfony-0.6.3.tgz ... Starting to download symfony-0.6.3.tgz (1,283,270 bytes) ..................done: 1,283,270 bytes downloading pake-1.1.4.tgz ... Starting to download pake-1.1.4.tgz (25,302 bytes) ...done: 25,302 bytes install ok: channel://pear.symfony-project.org/pake-1.1.4 install ok: channel://pear.symfony-project.org/symfony-0.6.3 % pear channel-discover pear.phing.info Adding Channel "pear.phing.info" succeeded Discovery of channel "pear.phing.info" succeeded % pear install phing/phing Did not download optional dependencies: pear/VersionControl_SVN, pear/PHPUnit2, pear/PhpDocumentor, pear/Xdebug, pear/PEAR_PackageFileManager, use --alldeps to download automatically phing/phing can optionally use package "pear/VersionControl_SVN" (version >= 0.3.0alpha1) phing/phing can optionally use package "pear/PHPUnit2" (version >= 2.3.0) phing/phing can optionally use package "pear/PhpDocumentor" (version >= 1.3.0RC3) phing/phing can optionally use package "pear/Xdebug" (version >= 2.0.0beta2) phing/phing can optionally use package "pear/PEAR_PackageFileManager" (version >= 1.5.2) downloading phing-2.2.0.tgz ... Starting to download phing-2.2.0.tgz (379,547 bytes) .............done: 379,547 bytes install ok: channel://pear.phing.info/phing-2.2.0
documented on: 2007.01.27