HUB
Sign inSign up

mdouglas/php-cs

By mdouglas

•Updated over 5 years ago

Containerized install of PHP_CodeSniffer

Image
0

210

mdouglas/php-cs repository overview

⁠docker-php-cs

A simple docker container with just PHP_CodeSniffer⁠ for linting and fixing PHP code against defined coding standards.

⁠Usage

⁠Get help for PHP_CodeSniffer commands
docker run --rm mdouglas/php-cs phpcs --help
docker run --rm mdouglas/php-cs phpcbf --help
⁠Check current directory against PSR-12
docker run --rm -v ${PWD}:/app -t mdouglas/php-cs phpcs --standard=PSR12 .
⁠Fix a file's PSR-12 violations
docker run --rm -v ${PWD}:/app -t mdouglas/php-cs phpcbf --standard=PSR12 .
Tag summary
Recent tags
Content type
Image
Digest
Size
37 MB
Last updated
over 5 years ago
docker pull mdouglas/php-cs:latest