PhpSpreadSheet Class ZipArchive not found Error

I've just downloaded PhpSpreadsheet package via composer and I tried to generate an Excel spreadsheet. But all I get is an error "Class ZipArchive not found ". I work on Windows. In my localhost it is correctly generating excel. My localhost php version is 7.0.2 .But server Php Version is 5.6. I am not able to generate excel in server. I am getting "*Class ZipArchive not found" error.

Can anyone help?


Solution 1:

I think you just need the PHP "zip" extension on your server... If I understand well, your dev machine is on Windows. But your "production" machine is on... Linux?

If it's Debian : apt-get install php-zip

If it's RedHat or whatever yum install...