Merge pull request #898 from COil/brew-switch-examples

brew: examples for manual PHP version switch
This commit is contained in:
Josh Lockhart
2021-12-12 08:50:46 -05:00
committed by GitHub

View File

@@ -17,6 +17,18 @@ brew install php@8.0
You can switch between Homebrew PHP versions by modifying your `PATH` variable. Alternatively, you can use [brew-php-switcher][brew-php-switcher] to switch PHP versions automatically.
You can also switch between PHP versions manually by unlinking and linking the wanted version:
```
brew unlink php
brew link --overwrite php@7.4
```
```
brew unlink php
brew link --overwrite php@8.0
```
### Install PHP via Macports
The [MacPorts] Project is an open-source community initiative to design an