Add option to run composer global update after switch #70
Replies: 3 comments 2 replies
-
I like this idea, and I actually wanted to add this a while ago. I was unsure on how to handle terminal command errors (since the global composer dependencies might not be compatible with the newly linked version of PHP). Thankfully, in the latest version of PHP Monitor I'm working on, I've made it much easier to check whether running any command returns a particular error code or error message, so this should not be too hard to implement. This is important because I will need to display a notification or alert if running Filed as #71! |
Beta Was this translation helpful? Give feedback.
-
Sounds good! Thanks in advance, and looking forward to it. :) |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a question/idea related to this. I currently have PHP 8.1 and 7.4 installed. I'd like to have Laravel Pint installed globally, but Pint only works with 8.0+, so if I do that then every time I switch back to 7.4 I get the "Composer detected issues in your platform" error, as Pint isn't compatible. Once this happens my only option is to quit PHP Monitor, remove Pint, update composer, then restart PHP Monitor. And then re-install Pint after I switch back to 8.1. I was just wondering if there was a better way to handle this currently? Or if not, perhaps there could be an option to use different global |
Beta Was this translation helpful? Give feedback.
-
Hi Nico, love the app as always. :)
For various reasons of really annoying incompatibilities, I find myself having to run
composer global update
after just about every php switch I make... which is like 5-6 daily at least.Would it be possible to add a setting like the one for "Auto-restart PHP-FPM" to also always run
composer global update
after switching? I know it's a bit of an edge case, but I suspect I'm not the only one with it.Cheers,
Joel
Beta Was this translation helpful? Give feedback.
All reactions