``` 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](http://xn--php-lp6e.xn--iniextension%3Dpsr-2o22a446d1j5k.so/) 重启php-fpm ``` service php-fpm restart ``` 查看phpinfo() 安装成功···· 原文链接:https://blog.csdn.net/pwjiferox/java/article/details/89601214