Mac PHP7.4 installation
View available by version:
brew search php
Install using brew:
$ brew install [email protected]
But error:
Error: [email protected] has been disabled because it is a versioned formula!
This is because php7.4 is no longer officially maintained, so Hombrew moved the php version out of the repository, so it cannot be installed.
solution
Install from a third-party warehouse
For example (all old versions of php warehouse address https://github.com/shivammath...)
//将第三方仓库加入brew
brew tap shivammathur/php
//安装PHP
brew install shivammathur/php/[email protected]