arrow_back
Back

PHP_CodeSniffer (phpcs): coding standards and style checks

Andrew Dorokhov Andrew Dorokhov schedule 1 min read
menu_book Table of Contents

Parameters

Show a list of installed coding standards:

-i

Example of output:

The installed coding standards are MySource, PSR12, PEAR, PSR1, Zend, Squiz, PSR2, WordPress-Extra, WordPress-Core, WordPress-Docs and WordPress

WordPress

There’s a special project: open_in_new WordPress-Coding-Standards .

Docker image: open_in_new willhallonline/wordpress-phpcs .

Run:

docker run -it --rm -v "$(pwd):/app" willhallonline/wordpress-phpcs phpcs -s file.php
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

PHP web servers: Apache, Nginx, PHP-FPM, and IIS

arrow_forward