Window7上搭建symfony开发环境(PEAR)

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" 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)

 

至此,symfony开发环境就搭建好了。

你可能感兴趣的:(window7)