Sign inSign up

wpengine/phpcs

By wpengine

•Updated almost 6 years ago
Archived

A minimal phpcs image useful for linting PHP files.

Image
1

10K+

wpengine/phpcs repository overview

⁠phpcs

A minimal phpcs image useful for linting PHP files.

⁠configuration

This image supports linting for WordPress Core Standards, PHP Compatibility, and any library provided by phpcs⁠ including PSR-2.

⁠PHP Compatibility Example:
docker run --rm -v `pwd`:/workspace wpengine/phpcs /workspace --standard=PHPCompatibility --runtime-set testVersion 7.2-
⁠WordPress Core Standards Example:
docker run --rm -v `pwd`:/workspace wpengine/phpcs /workspace --standard=WordPress
⁠PSR-2 Example:
docker run --rm -v `pwd`:/workspace wpengine/phpcs /workspace --standard=PSR2
⁠Using your own phpcs.xml
docker run --rm -v `pwd`:/workspace wpengine/phpcs /workspace --standard=./phpcs.xml
⁠Running PHPCFB

Automatically fix some sniff violations:

docker run --rm -v `pwd`:/workspace --entrypoint "/composer/vendor/bin/phpcbf" wpengine/phpcs /workspace --standard=PSR2

Tag summary

Content type

Image

Digest

Size

181.8 MB

Last updated

about 6 years ago

docker pull wpengine/phpcs