| Crates.io | phpup |
| lib.rs | phpup |
| version | 0.1.8 |
| created_at | 2022-02-19 06:35:56.525076+00 |
| updated_at | 2022-03-31 03:30:54.913972+00 |
| description | Cross-Platform PHP version manager |
| homepage | |
| repository | https://github.com/masan4444/phpup |
| max_upload_size | |
| id | 535052 |
| size | 157,889 |
:zap: PHP version manager written in rust
.php-versionFor bash, zsh and fish there's a installation script
curl -fsSL https://phpup.vercel.app/install | bash
To prevent duplication in your shell config file, add --skip-shell option to install command.
curl -fsSL https://phpup.vercel.app/install | 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.
bash, zsh, fish or powershell[WIP]curl, ps and make installationPATH environment variablecargo install phpup
Add the following to your .bashrc or .zshrc
eval "$(phpup init --auto --recursive)"
Create ~/.config/fish/conf.d/phpup.fish and add the following to it
phpup init --auto --recursive | source
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-optsPKG_CONFIG_PATH="$(brew --prefix libxml2)/lib/pkgconfig" \
phpup install 8.1 \
--configure-opts="--with-iconv=$(brew --prefix libiconv)"
PHPUP_CONFIGURE_OPTSPKG_CONFIG_PATH="$(brew --prefix libxml2)/lib/pkgconfig" \
PHPUP_CONFIGURE_OPTS="--with-iconv=$(brew --prefix libiconv)" \
phpup install 8.1
PHPUP_CONFIGURE_OPTSexport 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: