I am trying to run composer update
and I get the following errors:
Problem 1
- The requested PHP extension ext-zip * is missing from your sy
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.
I had problems with python symlink during the brew install php
.
/usr/local/Frameworks
didn't exist so I had to create it:
sudo mkdir /usr/local/Frameworks
cd /usr/local/
Then I had to chown it:
sudo chown -R myuser:admin Frameworks
I based the permission settings on the rest of the folders in /usr/local
.
Then I could run brew link python
.
Then I ran brew install php
again and it completed.
php -v
now gives me php 7.3.10 , before it was php 7.3.18 I think.
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.
Like @marc-alexander said, this is a bad practice. You should not use --ignore-platform-reqs
option if you do not sure what you are doing.
I thought the option would ignore the platform requirements and install the specific version of the packages. But in fact it will ignore the platform requirements and install the highest available version of the packages.
So if you need the missing PHP extension, you should just install (or enable) it
Reference: ignore-platform-reqs installs dev-master instead of correct version
If you do not need ext-zip
(e.g. You just want to do some quick fix), you can use --ignore-platform-reqs
option to ignore the requirements:
$ composer update --ignore-platform-reqs