Sign inSign up

herloct/phpcs

By herloct

Updated almost 8 years ago

Docker image for PHP_CodeSniffer's phpcs.

Image
3

100K+

herloct/phpcs repository overview

What is PHP_CodeSniffer and phpcs?

PHP_CodeSniffer's phpcs is a script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard.

How to use this image

Basic usage.

docker run --rm \
    --volume /local/path:/project \
    herloct/phpcs [<options>]

For example, to check src directory against the PSR1 and PSR2 coding standard.

docker run --rm \
    --volume /local/path:/project \
    herloct/phpcs --standard=PSR1,PSR2 src

Volumes

  • /project: Your PHP project directory.

Tag summary

Content type

Image

Digest

Size

26.1 MB

Last updated

almost 8 years ago

docker pull herloct/phpcs