How to install PHP zip extension / module in Macbook M1

When using composer I get: "Install or enable PHP's zip extension"


Checking the available PHP modules with PHP -m, I don't see any zip module listed.


How to install a PHP zip in a Macbook Pro chip M1?


Thanks in advance!

MacBook Pro 13″, macOS 11.6

Posted on Nov 18, 2021 5:09 PM

Reply
2 replies

Nov 18, 2021 5:59 PM in response to htmgarcia

What is "composer"?


Here is a site that explains how to install a PHP module on a Mac. See https://michaelgracie.com/2011/07/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/. This is a really old site, but then so is PHP. 😄


You might want to consider installing your own version of PHP. PHP is not included in macOS 12 Monterey. If you do upgrade, that might be a problem for you.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to install PHP zip extension / module in Macbook M1

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.