You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phpmon is a macOS utility that runs on your Mac and displays the active PHP version in your status bar. Handy if you're running multiple versions of PHP with Homebrew and wish to see which version is currently linked & active with Laravel Valet.
7
+
For me, it comes in handy when running multiple versions of PHP with Homebrew and you wish to be able to see at a glance which version is currently linked & active with Laravel Valet, and switch between versions.
8
+
9
+
This version of phpmon was developed for:
10
+
11
+
* macOS Mojave (10.14)
12
+
* PHP 7.x with Homebrew 2.x (with support for PHP 5.6 and PHP 7.0 [as well](https://github.com/eXolnet/homebrew-deprecated))
13
+
* Laravel Valet 2.2
14
+
15
+
## Why I built this
16
+
17
+
I wanted to be able to see at a glance which version of PHP was linked, and handle dealing with Laravel Valet in a simple app without having to deal with the terminal every time.
18
+
19
+
Initially, I had an Alfred workflow for this. But this does the job as well, while also showing me at all times which version of PHP is linked (which is the main benefit over e.g. an Alfred workflow).
8
20
9
21
## How it works
10
22
11
23
### Version detection
12
24
13
-
This utility runs `php -r 'print phpversion();'` in the background periodically and extracts the version number.
25
+
This utility runs `php -r 'print phpversion();'` in the background periodically (every 60 seconds) and extracts the version number.
14
26
15
27
### Switching PHP versions
16
28
@@ -29,4 +41,8 @@ The utility runs the following commands:
29
41
- Tell Valet to switch to a specific PHP version
30
42
- Link the desired version of PHP
31
43
32
-
If you want to know more about how this works, I recommend you check out the source code. This app isn't very complicated after all. In the end, this just (conveniently) executes some shell commands.
44
+
### Want to know more?
45
+
46
+
If you want to know more about how this works, I recommend you check out the source code.
47
+
48
+
This app isn't very complicated after all. In the end, this just (conveniently) executes some shell commands.
informativeText:"You must install PHP via brew. Try running `which php` in Terminal, it should return `/usr/local/bin/php`. The app will not work correctly until you resolve this issue."
messageText:"Laravel Valet is not correctly installed",
30
30
informativeText:"You must install Valet via brew. Try running `which valet` in Terminal, it should return `/usr/local/bin/valet`. The app will not work correctly until you resolve this issue."
messageText:"Brew has not been added to sudoers.d",
36
36
informativeText:"You must run `sudo valet trust` to ensure Valet can start and stop services without having to use sudo every time. The app will not work correctly until you resolve this issue."
messageText:"Valet has not been added to sudoers.d",
42
42
informativeText:"You must run `sudo valet trust` to ensure Valet can start and stop services without having to use sudo every time. The app will not work correctly until you resolve this issue."
0 commit comments