Style guide for writing consistent PHP for WordPress projects.
-
Updated
Jul 5, 2024 - PHP
Style guide for writing consistent PHP for WordPress projects.
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions
My useful frankenstein PHPCS ruleset 👓 for OOP WordPress development
Geniem (WordPress) PHP_CodeSniffer Rules
Find undefined and unused variables with the PHP Codesniffer static analysis tool.
Coding Standard Rules for CodeSniffer for writing consistent PHP code
Allows old code to use new standards
A modern, strict, strongly typed Laravel application starter
Example repo for a Laravel app that uses linting, formatting and code analysis
PHP Compatibility check for PHP_CodeSniffer
Helpers for PHP Code Sniffer.
PHPCS sniff to detect if your plugin/theme code is compatible with a wp version (supported range 3.7-current)
PHP CodeSniffer sniff to enforce PHP7, PHP8 types and documentation of array variables
Add a description, image, and links to the phpcs topic page so that developers can more easily learn about it.
To associate your repository with the phpcs topic, visit your repo's landing page and select "manage topics."