When I run a composer update
I get this error message:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to download psr/log from dist: The zip extension and unzip command are both missing, skipping.
The php.ini used by your command-line PHP is: /etc/php/7.0/cli/php.ini
Now trying to download from source
What do I need to do to enable the zip and unzip commands so that composer can download dependencies?
Workaround: Use
composer update --prefer-source
I had this issue when trying tocomposer update
phpspec.Failed to download symfony/polyfill-ctype from dist: The zip extension and unzip command are both missing, skipping.
I am on a Mac and had problems making Homebrew work to install php extensions. So, my quick fix was to forcecomposer
not to need to use zip by adding the –prefer-source option. This means it downloads the repo instead of a zipped package. Not a long term solution but handy to know.