This article wasn't updated in the last 1 ¾ years. Please double check if the content is still up-to-date.
If you find any error, please send me a quick heads-up.
If you find any error, please send me a quick heads-up.
Even if PHP 8.2 was just released, sometimes you still have to use old versions to do maintenance on older applications.
If you now try to install for example PHP 7.4, it will fail. Homebrew removes old versions that are not supported anymore.
Error: [email protected] has been disabled because it is a versioned formula
Good idea — but a problem for us, as we still need to work on our PHP 7.4 application.
Luckily there is another way to get older version up and running, by using the tap by Shivam Mathur:
brew tap shivammathur/php
Now you can just install legacy PHP versions by using:
brew install shivammathur/php/[email protected]