Skip to content

Just a simple shell script to switch between several php versions

License

Notifications You must be signed in to change notification settings

veliseev/shell_php_version_switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

shell_php_version_switcher

Just a simple shell script to switch between several php versions

You need to download the switch_to_php.sh file and place it anywhere on your machine. To make it accessible in command line you need to run the following commands:

sudo ln -s /full/path/to/swith_to_php.sh /usr/local/bin/switch_to_php
chmod +x /full/path/to/swith_to_php.sh

Example of using:

Script accepts only one parameter the php version you want switch to, i.e. simply run

switch_to_php 5.6
switch_to_php 7.0
switch_to_php 7.1

etc...

About

Just a simple shell script to switch between several php versions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages