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

brew update
brew install [email protected]
brew link [email protected]

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.


Following command fixed the issue on macOS Catalina

brew link [email protected] --force