diff --git a/dev/+php/env.zsh b/dev/+php/env.zsh new file mode 100644 index 00000000..d018f09e --- /dev/null +++ b/dev/+php/env.zsh @@ -0,0 +1 @@ +path=(~/.composer/vendor/bin $path) diff --git a/dev/+php/install b/dev/+php/install new file mode 100755 index 00000000..ab16abb6 --- /dev/null +++ b/dev/+php/install @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +case $OSTYPE in + darwin*) + brew tap homebrew/homebrew-php + brew install php71 composer + ;; + linux*) + if [[ -f /etc/arch-release ]]; then + sudo pacman --needed --noconfirm -S php composer + fi + ;; +esac + +# global packages +composer global require \ + d11wtq/borus \ + phpunit/phpunit \ + techlivezheng/phpctags