#!/bin/sh
#
# Composer
#
# Global installation of composer packages


# Check for composer
if test ! $(which composer)
then
	curl -sS https://getcomposer.org/installer | php -- --install-dir=$HOME/.dotfiles/bin
	mv $HOME/.dotfiles/bin/composer.phar $HOME/.dotfiles/bin/composer
fi

## Update composer
$HOME/.dotfiles/bin/composer self-update

packages=(
'phpunit/phpunit=3.7.*'
'phpmd/phpmd=1.4.*'
'squizlabs/php_codesniffer=*'
'phpdocumentor/phpdocumentor=2.*'
)

for package in ${packages[@]} ; do
  $HOME/.dotfiles/bin/composer global require $package
done

#!/bin/sh
#
# Composer
#
# Global installation of composer packages


# Check for composer
if test ! $(which composer)
then
	curl -sS https://getcomposer.org/installer | php -- --install-dir=$HOME/.dotfiles/bin
	mv $HOME/.dotfiles/bin/composer.phar $HOME/.dotfiles/bin/composer
fi

## Update composer
$HOME/.dotfiles/bin/composer self-update

packages=(
'phpunit/phpunit=3.7.*'
'phpmd/phpmd=1.4.*'
'squizlabs/php_codesniffer=*'
'phpdocumentor/phpdocumentor=2.*'
'laravel/installer=~1.1'
)

for package in ${packages[@]} ; do
  $HOME/.dotfiles/bin/composer global require $package
done

Add laravel to global composer deps
Add laravel to global composer deps
