-
Notifications
You must be signed in to change notification settings - Fork 50
Installing
Nik Nyby edited this page Aug 4, 2014
·
12 revisions
The recommended installation method will always be featured on the readme.md; however, this page is for documenting additional installation methods:
cURL + here string:
% source /dev/stdin <<< "$(curl -fsSL https://raw.github.com/wilmoore/php-version/master/php-version.sh)"
cURL (for non-OSX users or those that prefer not to use homebrew
):
% mkdir $HOME/.local
% 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
# add the following to your shell's configuration file (i.e. `.bashrc` or `.zshrc`):
source $HOME/.local/php-version/php-version.sh && php-version 5.x.x
Git/Github (for non-OSX users or those that prefer not to use homebrew
):
% mkdir $HOME/.local
% cd $HOME/.local
% git clone https://github.com/wilmoore/php-version.git
# add the following to your shell's configuration file (i.e. `.bashrc` or `.zshrc`):
source $HOME/.local/php-version/php-version.sh && php-version 5.x.x
php-version contributors:
# IMPORTANT: first, fork `php-version` to your GITHUB_USER
% cd $PROJECTS_ROOT # or wherever you store your projects
% git clone https://github.com/GITHUB_USER/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` or `.zshrc`):
source $PROJECTS_ROOT/php-version/php-version.sh && php-version 5.x.x
# adding a feature
% cd $PROJECTS_ROOT/php-version
% git checkout master
% git pull upstream master
% git push origin master
% git checkout -b new-feature
# edit, commit, push, pull-request