install ext-zip for Mac

install php extensions mac
install ext-gmp mac
install brew mac
install pcntl extension mac
install php-zip extension centos 7
php module zip not installed
mac install pecl
mac install php yaml

I am trying to run composer update and I get the following errors:

Problem 1
    - The requested PHP extension ext-zip * is missing from your system. Install or enable PHP's zip extension.
  Problem 2
    - maatwebsite/excel 3.1.10 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.11 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.12 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.13 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.14 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.15 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.16 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.17 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.7 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.8 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.9 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.x-dev requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.2.x-dev requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.0 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.1 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.2 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.3 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.4 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.5 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - maatwebsite/excel 3.1.6 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
    - phpoffice/phpspreadsheet 1.9.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.8.2 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.8.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.8.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.7.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.6.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.5.2 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.5.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.5.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - phpoffice/phpspreadsheet 1.4.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - Installation request for maatwebsite/excel ^3.1.0 -> satisfiable by maatwebsite/excel[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.15, 3.1.16, 3.1.17, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].

when running composer update

Overnight I have made the mistake of my life and allowed my Mac to automatically update the OS, so I am in macOS Catalina now.

I have tried adding

 "require": {
    "ext-zip": "*",
 }

to my composer.json..but its not downloading that extension.


I had the same problem after updating my Mac to Catalina. Here is what worked for me.

brew update
brew install php@7.3
brew link php@7.3

Then reload your console.

It will install php 7.3.10 with zip module. You can use php -v to check for the version, and php -m for the modules.

php 7.3.8 zip extension missing From macO…, Any idea where to find and install? It wasn't installed during installation of macOS 10.15 Catalina. Thanks in advance. David. # 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 On CentOs: yum install php-pecl-zip


Following command fixed the issue on macOS Catalina

brew link php@7.3 --force

Adding PHP extensions to System PHP under OS X 10.15 (Catalina), I tried installing zip with pecl, but that failed because the PHP header I expect the PHP and Mac development community will work out the  The "US Extended" keyboard layout is identical to the layout of the same name in Mac OS X, allowing you to type accents and special characters for foreign languages using easy-to-memorize keyboard


If brew link is not working for you, check your php version installed by:

ls /usr/local/opt/php*

Here, you will see a version as such:

/usr/local/opt/php@7.3/bin:$PATH

Should give you an output like:

/usr/local/opt/php@7.3:
INSTALL_RECEIPT.json        include
LICENSE                     lib
NEWS                        pecl
README.md                   sbin
bin                         share
homebrew.mxcl.php@7.3.plist

Now you just need to link that to your $PATH which can be done as:

echo 'export PATH="/usr/local/opt/php@7.3/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/php@7.3/sbin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Note: I am using .zshrc because that is my terminal setup. If yours is bash, use accordingly.

You can check which version of php is now linked to your MacOS by running:

which php

This should give you an output of:

/usr/local/opt/php@7.3/bin/php

That's it. Now if you try composer update, it should not give you the extension issue.

Source (part of it): https://medium.com/@jjdanek/installing-php-extensions-on-mac-after-homebrew-acfddd6be602

composer update missing zip extension (ext-zip) on MacOS, The reason seems to be that either the PHP version of the MacOS Catalina update or a version installed via brew do not come bundled with the  For one-time purchases of Office for Mac 2011 you can install Office on only one computer. However, you may transfer Office for Mac 2011 to another computer that belongs to you if you experience a hardware failure or you buy a new computer. For more information, see the Microsoft License Terms for your product.


On 10 March 2020, It works for me:

brew install php  

It is the only one command about PHP which work. So, I think that the commands shown in the last posts are deprecated.

PHP 7.3.8. ZIP extension on MacOS Catalina 10.15, so file. Once make install is run, move the executable somewhere safe. I use /usr/​local/php/extensions . For  For those using Homebrew, Justin Hileman maintains a blog post entitled "(Re)installing PHP on Mac OS X", which documents how to build PHP and extensions:


I had problems with python symlink during the brew install php.

/usr/local/Frameworks didn't exist so I had to create it: sudo mkdir /usr/local/Frameworks

cd /usr/local/

Then I had to chown it: sudo chown -R myuser:admin Frameworks

I based the permission settings on the rest of the folders in /usr/local.

Then I could run brew link python. Then I ran brew install php again and it completed.

php -v now gives me php 7.3.10 , before it was php 7.3.18 I think.

Can't install laravel on a fresh catalina version · Issue #30386 , I did not install any PHP, macOS Catalina comes with the latest PHP version: Since upgraded to catalina I am unable to install zip extension. If you want you can install composer also as independent service in container. If you’ve read my previous note about installing docker on Mac, you can do it. Composer’s Team provide the official image of composer in docker hub, so you don’t need to play with Dockerfile. Everything that you need to work with this is going to terminal and


MAMP PRO for Mac OSX, This is the error that I got when trying to install libzip: No releases available for package "pecl.php.net/libzip". Copy link. @yehgdotnet. If the installer asks to unlock your disk, enter the password you use to log in to your Mac. If the installer doesn't see your disk, or it says that it can't install on your computer or volume, you might need to erase your disk first. If the installer is for a different version of macOS than you expected, learn about macOS Recovery exceptions.


[Laravel][PHP] Can't install Laravel installer via composer, sudo apt-get install php7.4-zip. On MAC OSX. If you got the Error apt-get command not found. brew install php@7.3. If brew command not found. So now for installation of php extensions (like imagick or x-debug) you have to use PECL. Due to older php installations, I was getting lot of issues while trying to install php-imagick extension. Ultimately, I was able to resolve all the problems by installing PHP from scratch. In below, I have listed all the steps for fresh PHP installation. 1.


The requested PHP extension ext-zip * is missing from your system , Install or enable PHP's zip extension. Problem 2 I have MAMP with PHP version 7.2.10 and OSX 10.15.1 (19B88) Catalina. Anyone else  install ext-zip for Mac ; mongodb doesn't work on latest Mac OS(10.15) Git doesn't work on MacOS Catalina: “xcrun: error: invalid active developer path(/Library