Skip to content

thobaier/php-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linux PHP-Switcher

Locates and lists the currently installed PHP-Versions of a Linux and let's you switch between them.

Usage:

sh ./phpswitcher
# or
bash ./phpswitcher

Global usage:

# Add to your `~/.profile`|`~/.bashrc`|`~/.zshrc` file
export PATH="/path/to/phpswitcher:$PATH"

# make the binary executable
chmod +x /path/to/phpswitcher

Requirements:

  • sudo privileges

  • update-alternatives

  • sed


Compatibility:

  • Shell

  • Bash


Tested:

  • Ubuntu Terminal
  • ZSH
  • Terminator
  • Xterm
  • Tilix