Skip to content

Commit 1c46e82

Browse files
authored
Merge pull request #898 from COil/brew-switch-examples
brew: examples for manual PHP version switch
2 parents a27e277 + d194445 commit 1c46e82

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

_posts/01-04-01-Mac-Setup.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ brew install [email protected]
1717

1818
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.
1919

20+
You can also switch between PHP versions manually by unlinking and linking the wanted version:
21+
22+
```
23+
brew unlink php
24+
brew link --overwrite [email protected]
25+
```
26+
27+
```
28+
brew unlink php
29+
brew link --overwrite [email protected]
30+
```
31+
2032
### Install PHP via Macports
2133

2234
The [MacPorts] Project is an open-source community initiative to design an

0 commit comments

Comments
 (0)