Homebrew tap for PHP releases.
PHP Version | Formula |
---|---|
PHP 5.6 |
[email protected] |
PHP 7.0 |
[email protected] |
PHP 7.1 |
[email protected] |
PHP 7.2 |
[email protected] |
PHP 7.3 |
[email protected] |
PHP 7.4 |
php or [email protected] |
PHP 8.0.0-dev |
[email protected] |
PHP 8.1.0-dev |
[email protected] |
Update brew and the formulae before installing PHP.
brew update
Fetch the formulae in this tap.
brew tap shivammathur/php
See PHP Support for available formulae.
For example, to install PHP 7.3
.
# Install PHP 7.3
brew install shivammathur/php/[email protected]
# Link PHP 7.3
brew link --overwrite --force [email protected]
Upgrade your PHP version to the latest patch release.
For example, to upgrade PHP 7.3
.
brew upgrade shivammathur/php/[email protected]
If you have multiple PHP versions installed, you can switch between them easily.
For example, to switch to PHP 7.3
.
brew link --overwrite --force [email protected]
The code in this project is licensed under the MIT license. Please see the license file for more information.
Formulae for PHP versions which are supported currently in the PHP release cycle are synced from homebrew-core tap and their license can be found here.
Contributions are welcome! Please see Contributor's Guide before you start. If you face any issues while using this or want to suggest a feature/improvement, create an issue here.