-
Notifications
You must be signed in to change notification settings - Fork 50
Installing
Wil Moore III edited this page Sep 27, 2013
·
12 revisions
The recommended installation method will always be featured on the readme.md; however, this page is for documenting additional installation methods:
cURL (for non-OSX users or those that prefer not to use homebrew
):
% mkdir -p $HOME/local/php-version # or your place of choice
% cd !$
% curl -# -L https://github.com/wilmoore/php-version/tarball/master | tar -xz --strip 1
Git/Github (for php-version
contributors and/or non-homebrew
users):
# clone your fork of `php-version`
% cd $HOME/local
% git clone https://github.com/YOUR-USERNAME/php-version.git
% git remote add upstream https://github.com/wilmoore/php-version.git
# add the following to your shell's configuration file (i.e. `.bashrc`):
export PHP_VERSIONS=$HOME/local/php/versions
source $HOME/local/php-version/php-version.sh && php-version 5.x.x
# get the latest changes
% cd php-version
% git checkout master
% git pull upstream master
% git push