我使用拉链laravel 5.3创建压缩文件, 得到错误的,laravel错误:你的PHP版本不支持ZIP编译
Error: Your PHP version is not compiled with zip support
PHP版本:5.6
chmod($withdrawalFilePath, 0777);
$files = glob($withdrawalFilePath . '/*');
Zipper::make($withdrawalFilePath . '/Withdrawal.zip')->add($files)->close();
chmod($withdrawalFilePath . '/Withdrawal.zip', 0777);
也许这可能有助于https://community.apachefriends.org/f/viewtopic.php?f=17&t=52369 –
https://pecl.php.net/package/zip –
你应该安装php-zip延期。你可以在Linux上用'apt-get install php7.0-zip'或'apt-get install php-zip'来做到这一点。 –