PHP: PHPCS

.

What does it do?

This will provide formatting for your code in the latest, greatest version of PHP CodeSniffer. Which enables you access to the following PHP coding standards:

  • PSR1
  • PSR2
  • Generic
  • Squiz
  • PEAR
  • Zend

The Sources

Docker: https://hub.docker.com/r/willhallonline/phpcs/ GitHub: https://github.com/willhallonline/docker-phpcs

Commands

Commands you can run to use this.

Aliases

Aliases you can use from the Docker DevTools aliases.

phpcs-drupal="docker_alias /app willhallonline/phpcs:alpine phpcs"
phpcbf-drupal="docker_alias /app willhallonline/phpcs:alpine phpcbf"

Container

docker pull willhallonline/phpcs:alpine

OR (if you want based on Debian rather than Alpine)

docker pull willhallonline/phpcs

Find out more