Skip to content

Script for installing/switching php versions on Ubuntu

License

Notifications You must be signed in to change notification settings

svilborg/php-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Switch Script

A script for installing ppa:ondrej/php repository and switching between php versions

Installation

Clone the repo or download php-switch.sh

Requirements

  • Ubuntu
  • bash

Usage

  • ./php-switch.sh add-repo       Install PHPs Repo
  • ./php-switch.sh info           PHP Versions/Package Info
  • ./php-switch.sh install 7.0 Install PHP Ver 7.0
  • ./php-switch.sh uninstall 7.0 Uninstall PHP Ver 7.0
  • ./php-switch.sh to 7.2 Switch to version 7.2
  • ./php-switch.sh ver Show current PHP Ver info