phpenv / phpenv-installer

Install phpenv & php-build and update all of them when you want to

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phpenv-installer & doctor scripts

Install phpenv + php-build (and other plugins), updating all of them when you want to!

phpenv-installer

It's the standard way: phpenv-installer idempotenttly installs or updates phpenv in $HOME/.phpenv (default $PHPENV_ROOT value).

curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer \
    | bash

The script will then instruct you to edit your shell initialization files.

Optional: Installation in other directory (i.e. system-wide)

If you prefer to install phpenv in other directory (i.e $HOME/myphpenv), or perhaps system-wide (i.e. /usr/local/bin/phpenv), it's easy: just set $PHPENV_ROOT before the installer command:

# $HOME/myphpenv
curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer \
    | PHPENV_ROOT=$HOME/myphpenv bash
# /usr/local/bin/phpenv
curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer \
    | PHPENV_ROOT=/usr/local/bin/phpenv bash

Note: depends on the path, you will need superuser (sudo) permission. You may also want to sudo chown -R /usr/local/bin/phpenv so that you can run the phpenv utilities as a regular user. Feel free to ask if you need some help!

Updating

phpenv update

Plugins installed by default

Uninstallation

rm -rf $(phpenv root)

phpenv-doctor

You can verify the state of your phpenv installation with:

curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-doctor \
    | bash

Inspired by rbenv-installer and pyenv-installer

About

Install phpenv & php-build and update all of them when you want to

License:MIT License


Languages

Language:Shell 100.0%