macOS Monterey stop bundling PHP
tomy0000000 opened this issue · comments
It is confirmed that macOS Monterey will stop provide built-in PHP, see here and there.
The solution would probably be...
- Bundle php binaries in this workflow (I'm not sure if that's going to work / suitable)
- Add a user-guide to instruct user install php with homebrew (Probably the easiest, but not ideal for non-geeky users)
- Rebuild the whole functionality in another scripting language
For anyone who stumble across this, the quick solution is
- Install PHP via homebrew
brew install php
- Change php path in Alfred
Double-click on encode
/ decode
block, and change php
to /usr/local/bin/php
Would you like to put a PR to update the docs?
Setting the $PATH shouldn't require a change in Alfred, usually brew takes care of this.
I've tried fixing this issue by setting export PATH=/usr/local/bin:$PATH
in many different ways. For instance, inside .bashrc
, .bash_profile
, .profile
, .zshrc
...etc.
The thing is, alfred execute these script in non-interactive mode, so it won't source those rcfiles implicitly.
Changing path in Alfred is the most easiest way to do, IMHO.
Thanks for checking. Let's add the docs on how to change path then. Since people will be using both versions for at least a year.