switch-php
switch-php copied to clipboard
Easily switch between PHP versions on your Mac. Requires Homebrew and works with Laravel Valet. 🔀
Update this for support php 7.4 please and thanks!
Hey there! When I try and switch from php 7.4.5, nothing seems to happen. ``` brett~/Sites$ switch-php 7.1 Password: Valet stopped ✔ PHP switched ✔ Valet started ✔ You are...
Since homebrew installs `[email protected]` as `php` the switcher cannot interact anymore. Temporary Workaround: running `brew link --overwrite [email protected]`. Afterwards it's possible to switch between PHP version lower than v8
Could you please tag a release with the PHP 7.4 support?
To help deal with an often changing brew environment write your own custom ad-hoc tasks that execute PRE and POST switch-php's typical tasks. You may optionally define functions `_switch_php_pre_tasks` and...
Better supports situations where a php@$ver is installated and possibly broken, which would then make the command `valet` fail.
 It seems that the command is not workihng on my end.
When [platform](https://getcomposer.org/doc/06-config.md#platform) is specified in `composer.json`, this should be used for switch-php (possibly abbreviated to minor level). This should work analog to `nvm` by not specifying any further arguments.