Code Monkey home page Code Monkey logo

phpenv's Introduction

phpenv

Installer for phpenv, which leverages the great sstephenson/rbenv project at its core (with optional installation of the php-build and php-conf plug-ins). Additionally, the required build-deps for PHP can be installed during script execution.

Installation

Single Command Install: You can use this installer script without cloning the repository yourself by calling the following command:

curl -s https://raw.githubusercontent.com/src-run/phpenv/master/bin/phpenv-installer-remote.bash | bash

Clone Repository Yourself: Alternatively, you can clone the repository yourself and execute the installer script:

git clone --recurse-submodules https://github.com/src-run/phpenv.git
bash phpenv/bin/phpenv-installer.bash

phpenv Usage

The phpenv-install.sh command sets up a separate rbenv for usage with PHP. This environment is stored in the $HOME/.phpenv directory and contains a phpenv executable which sets the PHPENV_ROOT environment variable to $HOME/.phpenv.

To install PHP versions, you can either put compiled version within the $HOME/.phpenv/versions directory, or (if you installed the php-build plug-in) you can use the following commands:

phpenv install -l     # list available versions
phpenv install 7.1.13 # installed php version 7.1.13
phpenv rehash         # refresh installed versions
phpenv global 7.1.13  # set 7.1.13 as global active version
php -v                # outputs version 7.1.13 info
phpenv global system  # go back to the system-installed php version

phpenv's People

Contributors

banyan avatar chh avatar cmbuckley avatar davedevelopment avatar gitter-badger avatar hnw avatar loicfrering avatar milly avatar robfrawley avatar rogeriopradoj avatar yukio-goto avatar yuya-takeyama avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.