Skip to content

NijiDigital/docker-php-quality-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Docker PHP Quality tools

This image contains some tools to checks the PHP code quality

Tools in this image

Usage example

phpcs

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools phpcs [options]

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools phpcs --help

Visit https://github.com/squizlabs/PHP_CodeSniffer for all phpcs usage.

phpstan

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools phpstan [options]

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools phpstan --help

Visit https://github.com/phpstan/phpstan for all phpstan usage.

phpmd

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools phpmd [options]

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools phpmd --help

Visit https://phpmd.org/ for all phpmd usage.

phpcpd

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools phpcpd [options]

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools phpcpd --help

Visit https://github.com/sebastianbergmann/phpcpd for all phpcpd usage.

security-checker

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools security-checker security:check <path-to-composer.lock>

$ docker run --rm -v $PWD:/code:ro niji/php-quality-tools security-checker help security:check

Visit https://github.com/sensiolabs/security-checker for all security-checker usage.