brew: examples for manual PHP version switch

This commit is contained in:
COil
2021-10-29 13:51:34 +02:00
parent f221bfd85d
commit d19444595a

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 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 ### Install PHP via Macports
The [MacPorts] Project is an open-source community initiative to design an The [MacPorts] Project is an open-source community initiative to design an