1. Install homebrew
brew update
brew install php712. Install different version php
brew unlink [current php symlinks] // ex. php unlink php71
brew install php56
brew link php563. Change php version
brew services stop [current php] // ex. brew services stop php71
brew unlink [current php symlinks] // ex. php unlink php71
brew link php56Reference
- Michael Dyrynda | Switching PHP versions with Laravel Valet
- 在 OSX 使用 Homebrew 打造精巧的 Laravel 開發環境
- Laravel Valet - Laravel - The PHP Framework For Web Artisans
原文發表於 Medium