cd /usr/local/src
git clone https://github.com/jbboehr/php-psr.git
cd php-psr
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
在php.ini中添加extension=psr.so
重启php-fpm
service php-fpm restart
查看phpinfo() 安装成功····
原文链接:https://blog.csdn.net/pwjiferox/java/article/details/89601214
网友评论