phpoffice/phpspreadsheet[1.18.0, …, 1.20.0] require ext-zip * -> it is missing from your system. Install or enable PHP’s zip extension.
composer require <vendor><package name>
Error:
phpoffice/phpspreadsheet[1.18.0, …, 1.20.0] require ext-zip * -> it is missing from your system. Install or enable PHP’s zip extension.
Answer:
Install using (to install the default version):
sudo apt install php-zip
Or, if you’re running a specific version of PHP:
# For php v7.0
sudo apt-get install php7.0-zip
# For php v7.1
sudo apt-get install php7.1-zip
# For php v7.2
sudo apt-get install php7.2-zip
# For php v7.3
sudo apt-get install php7.3-zip
# For php v7.4
sudo apt-get install php7.4-zip