bscott Posted March 22, 2013 Share Posted March 22, 2013 (edited) Switch between multiple PHP versions I have several versions of PHP and need to switch between them and created this workflow to make it easier. I'm new to Alfred and this is my first attempt at a workflow and I don't know if my approach is correct or not but someone else may find this useful. Download http://cl.ly/NmQT Usage To add or delete a PHP version phpset key path For example phpset 5.4 /Applications/MAMP/bin/php/php5.4.10/bin/php To remove a PHP version leave the path blank. To query current PHP version phpqry To set PHP version phpver Select the required version from the list displayed as shown in the above image. Notes 1 Setting the PHP version runs as admin and will prompt for username & password. 2 The existing /usr/bin/php is renamed as /usr/bin/php.osx 3 The key osx is set by default to point to /usr/bin/php.osx Contact bob@rwscott.co.uk Edited March 22, 2013 by bscott Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now