PHPTARS-2.3.0
特别说明:本扩展仅支持 php >= 8.0 以上的版本
未对 PHP 7.x 版本做过测试,不确定是否支持.
由于官方项目维护不及时,暂不支持 PHP8,所以我创建了这个版本.
官方项目地址: https://github.com/TarsPHP/tars-extension
安装指令参考
cd /root/ && \
wget https://github.com/lanlin/phptars-php8/archive/refs/tags/2.3.0.tar.gz && \
tar -zxvf 2.3.0.tar.gz && \
cd ./phptars-php8-2.3.0/ && \
phpize --clean && \
phpize && \
./configure --enable-phptars && \
make clean && \
make && \
make test && \
make install && \
mkdir -p /root/phptars && \
cp ./tars2php.php /root/phptars && \
cd /root/ && \
rm -rf ./phptars-php8*
最后将 extension=phptars.so
添加到你的 php.ini
中即可。