http://blog.csdn.net/kunshan_shenbin/article/details/7162243
1. Update Pear
Go to the directory where PHP is located, find Go-pear.bat and double click.
All the way to the carriage.
After completion, the Pear_env.reg file is generated in the current folder and double-click Register.
2. Installing Symfony
Open the Windows DOS Console (CMD) and run the following command:
C:\users\shenbin>Pear channel-discover pear.symfony-project.com
Adding Channel "Pear.symfony-project.com" succeeded
Discovery of channel "Pear.symfony-project.com" succeeded
C:\users\shenbin>Pear remote-list-c symfony
CHANNEL SYMFONY AVAILABLE PACKAGES:
===================================
Package VERSION
Eventdispatcher 1.0.0
YAML 1.0.6
Pake 1.1.4
Symfony 1.4.16
C:\users\shenbin>Pear Install symfony/symfony
Downloading symfony-1.4.16.tgz ...
Starting to download symfony-1.4.16.tgz (3,187,518 bytes)
...................................................................
done:3,187,518 bytes
Install ok:channel://pear.symfony-project.com/symfony-1.4.16
C:\users\shenbin>symfony-v
Symfony version 1.4.16 (D:\xampp\php\PEAR\symfony)
At this point, the Symfony development environment is built.
Build symfony development environment on WINDOW7 (PEAR)