Install PHP Extension for PHP 5.6 on OSX with deprecated homebrew/php

Giampaolo picture Giampaolo · Apr 4, 2018 · Viewed 12.1k times · Source

today I've update Brew and now I can't install the php56-extensions.

On my Mac is installed "php56" and today I had need to install, "php56-redis", but when I had try to install this extension, Brew returned the following error message.

$ brew install php56-redis

Error: No available formula with the name "php56-redis" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

I see on homebrew/php page that this "tap" is deprecated and for now only PHP engine are migrated on [email protected] but the extensions not works.

Answer

emamie picture emamie · Jan 31, 2019

First install exolnet/homebrew-deprecated

$ brew tap exolnet/homebrew-deprecated

After it install deprecated package

$ brew install [email protected]