PHP-UP - Fast and Simple PHP version manager
:zap: PHP version manager written in rust
Features
- No requirements for system PHP installation
- Cross-platform support (macOS, Linux)
- Automatically version switching via
.php-version
Installation
Requirements
- OS: Unix-like (Linux, macOS, BSD)
- shell: bash, zsh
curl
/ps
instalation
Manually
using a release binary
- Download the latest release binary for your system
- Make it available globally on
PATH
environment variable
using cargo
cargo install phpup
Shell setup
Add the following to your .bashrc
or .zshrc
- To automatically run
phpup use
when a directory contains a.php-version
file, add the--auto
(long:--auto-switch
) option. - To search recursively for a
.php-version
file in a parent directory when runningphpup use
automatically, add the--recursive
(long:--recursive-version-file
) option. - For more options, run
phpup init --help
.
Usage
phpup help
Contribution
PRs Welcome :tada: