Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 590 Bytes

File metadata and controls

42 lines (32 loc) · 590 Bytes

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