brew install autoconf libzip //可能需要安装这两个
wget https://pecl.php.net/get/zip-1.19.0.tgz
tar -zxvf zip-1.19.0.tgz
cd /zip-1.19.0
./xxxxx/phpize (找到拟的phpize路径)
./configure --with-php-config=/xxxxxxxx/php-config (找到你的php-config)
make && make install
安装成功后会返回类似动态库地址
Installing shared extensions: /xxxxx/extensions/no-debug-non-zts-20170718/
修改php.ini文件开启zip
extension=/xxxxxxx/zip.so
重启使用