http://blog.csdn.net/kunshan_shenbin/article/details/7162243
1. 更新PEAR
进入PHP所在目录,找到go-pear.bat并双击。
一路回车。
完成后在当前文件夹中会生成PEAR_ENV.reg文件,双击注册。
2. 安装symfony
打开window下DOS控制台 (CMD),运行如下指令:
C:\Users\shenbin>pear channel-discover pear.symfony-project.com
Adding Channel "pear.symfony-project.com" succeededDiscovery of channel "pear.symfony-project.com" succeededC:\Users\shenbin>pear remote-list -c symfonyCHANNEL SYMFONY AVAILABLE PACKAGES:===================================PACKAGE VERSIONEventDispatcher 1.0.0YAML 1.0.6pake 1.1.4symfony 1.4.16C:\Users\shenbin>pear install symfony/symfonydownloading symfony-1.4.16.tgz ...Starting to download symfony-1.4.16.tgz (3,187,518 bytes)...................................................................done: 3,187,518 bytesinstall ok: channel://pear.symfony-project.com/symfony-1.4.16C:\Users\shenbin>symfony -Vsymfony version 1.4.16 (D:\xampp\php\PEAR\symfony)
至此,symfony开发环境就搭建好了。