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.
Related Contents:
- dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac
- How to remove globally a package from Composer?
- How to use the php that brew installed?
- Update PHP to 7.4 macOS Catalina with brew
- Errors installing Composer on macOS (JIT compilation failed)
- How can I fix “Error: Formulae found in multiple taps”?
- How to install a specific version of package using Composer?
- Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted
- How to remove unused dependencies from composer?
- require(vendor/autoload.php): failed to open stream
- PHP error: “The zip extension and unzip command are both missing, skipping.”
- Skip composer PHP requirement
- What is the canonical way to determine commandline vs. http execution of a PHP script?
- How can I easily switch between PHP versions on Mac OSX?
- Cannot create cache directory .. or directory is not writable. Proceeding without cache in Laravel
- Composer Warning: openssl extension is missing. How to enable in WAMP
- Does PHP have threading?
- Use PHP composer to clone git repo
- How to downgrade or install a specific version of Composer?
- The openssl extension is required for SSL/TLS protection
- Installing specific laravel version with composer create-project
- SHA384 is not supported by your openssl extension, could not verify the phar file integrity
- Why is PHP Composer so slow?
- Fatal error: Maximum execution time of 300 seconds exceeded
- composer.lock: how does it work?
- How do I upgrade PHP in Mac OS X?
- mysqli_real_connect(): (HY000/2002): No such file or directory
- Composer loading from cache
- Mysql password expired. Can’t connect
- Unable to self-update Composer
- Get the list of outdated Composer packages
- Error “Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement” [duplicate]
- php cli memory limit
- How to update Composer in Windows 10
- Force composer to require PHP Version between Version X and Version Y
- Slow updating of composer dependencies, despite –prefer-dist flag
- Laravel 5 Class ‘form’ not found
- Composer: remove a package, clean up dependencies, don’t update other packages
- How can I solve “laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system”?
- Can composer generate the `composer.lock` without actually download the packages?
- laravel composer update : the requested PHP extension dom is missing from your system
- How to install Laravel 5.0
- Install dependency (doctrine/dbal) on composer laravel
- Difference between composer prefer-dist and prefer-source?
- How to add private github repository as Composer dependency
- but these conflict with your requirements or minimum-stability
- Updating php version on mac
- Start a PHP server on Mac OS X
- Install package on non-empty folder using composer
- php interactive shell doesn’t have any output?