Jump to content

PHP Version Switch


Recommended Posts

Switch between multiple PHP versions

 

 

PHPVersion.png

 

 

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 by bscott
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...