Add dev/+php

This commit is contained in:
Henrik Lissner 2017-06-08 15:06:42 +02:00
parent 2c2212b50d
commit 382498d1eb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 20 additions and 0 deletions

1
dev/+php/env.zsh Normal file
View file

@ -0,0 +1 @@
path=(~/.composer/vendor/bin $path)

19
dev/+php/install Executable file
View file

@ -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