什么是pear
全称为PHP扩展与应用库(PHP Extension and Application Repository)。为了创建一个类似于Perl CPAN档案的工具,Stig S. Bakken在1999年创立了PEAR项目
如何安装pear
1:从“http://pear.php.net/go-pear.phar”下载“go-pear.phar”
2:将“go-pear.phar”拷贝到PHP ;
3:运行命令“
php go-pear.phar
”
接着按提示就可以安装pear了;
pear模块安装
1:pear channel-discover pear.phpunit.de
2:pear channel-discover components.ez.no
3:pear install phpunit/PHP_CodeCoverage