RuntimeException The Zip PHP extension is not installed

I was using php7.0-zts.
The solution was to uninstall all the ZTS packages and revert to the regular php7.0 packages.


for php 7.0

sudo apt-get install php7.0-zip

for php 7.1

sudo apt-get install php7.1-zip

and so on!


I got the same issue and tried to install the extension with the command sudo apt install php7.0-zip but still got the same error. I finally solved it with sudo apt install php-zip


Try type into the command line:

sudo apt-get install php7.0-zip

Verify from any route with:

dd(get_loaded_extensions());

This worked for me, good luck.