:zap: PHP version manager written in rust
.php-version
sh
curl https://raw.githubusercontent.com/masan4444/phpup/master/.ci/install.sh | bash
To prevent duplication in your shell config file, add --skip-shell
option to install command.
sh
curl https://raw.githubusercontent.com/masan4444/phpup/master/.ci/install.sh | bash -s -- --skip-shell
To remove PHP-UP, just delete the .phpup
folder in your home directory.
You should also edit your shell configuration to remove any references to phpup.
curl
/ps
installationPATH
environment variable
cargo install phpup
Add the following to your .bashrc
or .zshrc
bash
eval "$(phpup init --auto --recursive)"
phpup use
when a directory contains a .php-version
file, add the --auto
(long: --auto-switch
) option..php-version
file in a parent directory when running phpup use
automatically, add the --recursive
(long: --recursive-version-file
) option.phpup init --help
.--configure-opts
sh
PKG_CONFIG_PATH="$(brew --prefix libxml2)/lib/pkgconfig" \
phpup install 8.1 \
--configure-opts="--with-iconv=$(brew --prefix libiconv)"
PHPUP_CONFIGURE_OPTS
sh
PKG_CONFIG_PATH="$(brew --prefix libxml2)/lib/pkgconfig" \
PHPUP_CONFIGURE_OPTS="--with-iconv=$(brew --prefix libiconv)" \
phpup install 8.1
PHPUP_CONFIGURE_OPTS
sh
export PKG_CONFIG_PATH="$(brew --prefix libxml2)/lib/pkgconfig"
export PHPUP_CONFIGURE_OPTS="--with-iconv=$(brew --prefix libiconv)"
phpup install 8.1
See List of core configure options for more configre options.
phpup help
PRs Welcome :tada: