mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-14 01:33:58 +02:00
Merge pull request #898 from COil/brew-switch-examples
brew: examples for manual PHP version switch
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user