Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MNGemignani/php_version_switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PHP version switcher

Installation:

First of all we need to install multiple php versions, this can be easily done via Ondřej package, you can look for it on google, but basic commands would be:

$ sudo apt-get update

$ sudo apt install python-software-properties

$ sudo add-apt-repository ppa:ondrej/php

$ sudo apt install php5.6   
$ sudo apt install php7.0   
$ sudo apt install php7.1   
$ sudo apt install php7.2   
$ sudo apt install php7.3   
$ sudo apt install php7.4

Second you can add the scripts from this repo, for this there are a few options, here is one:

$ mkdir ~/bin
$ mv phpvto.sh ~/bin/phpvto
$ chmod +x ~/bin/phpvto

Add ~/bin to your PATH

Usage:

Run $ phpvto [version-number] and the script will do the rest.

Information:

For help run $ phpvto --help .

About

This is a bash script to easily change between php versions (5.6 / 7.0 / 7.1 / 7.2/ 7.3/ 7.4)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages