Why bother with code checking?

Coding standards provide a foundation for writing your code. If you are involved in a big project, it is imperative that the team that works with you follows the same coding practices. This is helpful during the development phase, especially while debugging and doing code reviews. The days of manual checking your code are long gone, and we have a bunch of tools that can help us with writing quality code (linters, code sniffers, unit tests). One of such tools, which is especially helpful, is PHP CodeSniffer. PHP CodeSniffer will check your PHP, JS and CSS code on the fly, and you can also write your own sniffs and define your own standards. You’ll get an overview of using phpcs, writing your own, and extending other people sniffs and standards.

Speaker