Improving Code Quality with PHP_CodeSniffer

Improving Code Quality with PHP_CodeSniffer

Presented on January 25 2020 at the PHPBenelux conference, Antwerp, Belgium.
https://conference.phpbenelux.eu/sessions/improving-code-quality-with-php_codesniffer/
---------------------------------------------------------------
Now you will probably have heard of PHP_CodeSniffer as a tool to check your code for consistent code style, but did you know it can also be used to check for common best practices ?

Out of the box, PHPCS already contains the basics to check your code against common industry metrics, however, when you add a few external standards into the mix, it can do so much more. Suddenly you can check your code for PHP cross-version compatibility, check your unit tests for using the right assertion or enforce strict typing across your application.

Join Juliette to learn about a variety of external standards available, what they can do for you and how to integrate them in the tooling you already use every day.
---------------------------------------------------------------

Links:

PHP_CodeSniffer:
https://github.com/squizlabs/PHP_CodeSniffer

Find External Standards on Packagist:
https://packagist.org/?query=phpcs&type=phpcodesniffer-standard
https://packagist.org/?query=php_codesniffer&type=phpcodesniffer-standard

DealerDirect Composer PHPCS plugin
https://github.com/Dealerdirect/phpcodesniffer-composer-installer

PHPCSDevTools, PHPCSUtils, PHPCSExtra, PHPCompatibility et al:
https://github.com/PHPCSStandards
https://github.com/PHPCompatibility

2776198ea9584b6c0d4b494293b8d635?s=128

Juliette Reinders Folmer

January 25, 2020
Tweet