Skip to content

Instantly share code, notes, and snippets.

@nielsnuebel
Created October 8, 2019 18:35
Show Gist options
  • Save nielsnuebel/7dcbc2ada59885cb93feef0b23baa7ec to your computer and use it in GitHub Desktop.
Save nielsnuebel/7dcbc2ada59885cb93feef0b23baa7ec to your computer and use it in GitHub Desktop.
Buddy Joomla PHPCS
apt-get update && apt-get install -y git zip
curl -L https://phar.phpunit.de/phpunit.phar -o /usr/local/bin/phpunit
curl -L https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -o /usr/local/bin/phpcs
curl -L https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -o /usr/local/bin/phpcbf
chmod +x /usr/local/bin/phpunit
chmod +x /usr/local/bin/phpcs
chmod +x /usr/local/bin/phpcbf
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
composer global require joomla/coding-standards "~2.0@alpha"
phpcs --config-set installed_paths /root/.composer/vendor/joomla/coding-standards/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment