Skip to content

Instantly share code, notes, and snippets.

@jeroenherczeg
Last active May 3, 2016 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroenherczeg/3e0447d6dc18ac274893 to your computer and use it in GitHub Desktop.
Save jeroenherczeg/3e0447d6dc18ac274893 to your computer and use it in GitHub Desktop.
Install script for PHP Tools needed for Jenkins
#!/bin/bash
# Author : Jeroen Herczeg <jeroen@herczeg.be> HASSELT, LIMBURG, BELGIUM, EUROPE, EARTH
#
# Hello. My name is Jeroen Herczeg and I can help you or your team with my broad knowledge
# of frontend & backend web technologies and tools. I'm an eager learner and easily adapt to
# new environments. Work remotely? I like that. Need me on location? I'm sure we'll figure something out!
#
# http://herczeg.be
echo "PHP Tools will be installed to /usr/local/bin and renamed with .phar"
echo "Installing PHPUnit (https://phpunit.de)"
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
echo "Installing PHP Codesniffer (https://github.com/squizlabs/PHP_CodeSniffer)"
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
chmod +x phpcs.phar
sudo mv phpunit.phar /usr/local/bin/phpcs
echo "Installing PHP LOC (https://github.com/sebastianbergmann/phploc)"
wget https://phar.phpunit.de/phploc.phar
chmod +x phploc.phar
sudo mv phploc.phar /usr/local/bin/phploc
echo "Installing PDepend (http://pdepend.org)"
wget http://static.pdepend.org/php/latest/pdepend.phar
chmod +x pdepend.phar
sudo mv pdepend.phar /usr/local/bin/pdepend
echo "Installing PHPMD (http://phpmd.org)"
wget http://static.phpmd.org/php/latest/phpmd.phar
chmod +x phpmd.phar
sudo mv phpmd.phar /usr/local/bin/phpmd
echo "Installing PHPMD (https://github.com/sebastianbergmann/phpcpd)"
wget https://phar.phpunit.de/phpcpd.phar
chmod +x phpcpd.phar
sudo mv phpcpd.phar /usr/local/bin/phpcpd
echo "Installing phpDox (http://phpdox.de)"
wget http://phpdox.de/releases/phpdox.phar
chmod +x phpdox.phar
sudo mv phpdox.phar /usr/local/bin/phpdox
echo "Finished!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment