install ext-zip for Mac
I had the same problem after updating my Mac to Catalina. Here is what worked for me.
brew updatebrew install php@7.3brew 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.
Following command fixed the issue on macOS Catalina
brew link php@7.3 --force
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.