philcook / brew-php-switcher

Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we have the default be to restart Valet if it is installed?

simensen opened this issue · comments

Trying this project out today to see if it will work for me switching between PHP versions. However, I use Valet and find that I need to specify -c=valet to make sure Valet is restarted.

Is there a reason for this? If not, if I provided a way to either make restarting Valet happen by default or by some other means (env config values, etc) would that be accepted?

Hello @simensen.

On the contrary i use neither apache and valet and find that having to add flags for excluding stuff i don't use is cumbersome. Flags for other optional programs should be inclusive instead of exclusive imho.

I agree that the fact i have to explicitly "--skip" valet while you have to explicitly switch "--config" for it, sounds kind of counter intuitive.

Maybe what one could do is detects if commands for valet, apache, ... and such exists and restart those services automatically.