方式一:下载 DLL
方式二:编译安装
搭建PHP编译环境
详细见 php.net
安装依赖
cd PHP_BUILD_PATH/depsDownloadFile http://zlib.net/zlib-1.2.11.tar.gz7z x zlib-1.2.11.tar.gz > NUL7z x zlib-1.2.11.tar > NULcd zlib-1.2.11cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_C_FLAGS_RELEASE="/MT"cmake --build . --config "Release"
编译扩展
cd PHP_PATH/extgit clone https://github.com/viest/php-ext-excel-export.gitcd php-ext-excel-exportgit submodule update --initphpizeconfigure.bat --with-xlswriter --with-extra-libs=PATH\zlib-1.2.11\Release --with-extra-includes=PATH\zlib-1.2.11nmake
