1、下载xlsxWriter扩展包
wget https://pecl.php.net/get/xlswriter-1.5.2.tgz

2、解压
tar -zxvf xlswriter-1.5.2.tgz

3、编译
mv xlswriter-1.5.2 xlswriter

cd xlswriter
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make&&make install
4、修改php.ini文件

5、php安装phpoffice/phpexce扩展

6、重启PHP服务
7、查看扩展

本文指导如何在PHP环境中安装xlsxWriter扩展及phpoffice/phpexcel库。首先通过wget下载xlsxWriter的tgz文件,然后进行解压、编译安装。接着,修改php.ini配置文件,安装phpoffice/phpexcel扩展,最后重启PHP服务以使改动生效。
3785

被折叠的 条评论
为什么被折叠?



