https://github.com/php-collective/awesome-php-sniffers
PHP Code Sniffers/Fixers of various focus areas and styles
https://github.com/php-collective/awesome-php-sniffers
List: awesome-php-sniffers
code-style coding-standards php-codesniffer php-codesniffer-rules php-cs-fixer php-cs-fixer-ruleset phpcs psr-12 psr-2 ruleset
Last synced: 10 days ago
JSON representation
PHP Code Sniffers/Fixers of various focus areas and styles
- Host: GitHub
- URL: https://github.com/php-collective/awesome-php-sniffers
- Owner: php-collective
- License: mit
- Created: 2023-11-15T01:10:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-17T15:19:40.000Z (over 1 year ago)
- Last Synced: 2024-10-20T15:41:48.885Z (over 1 year ago)
- Topics: code-style, coding-standards, php-codesniffer, php-codesniffer-rules, php-cs-fixer, php-cs-fixer-ruleset, phpcs, psr-12, psr-2, ruleset
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Awesome PHP Sniffers
A curated list of amazingly awesome PHP Coding Standards & Code Sniffers/Fixers of various focus areas and styles.
Order is alphabetical.
## Table of Contents
- [Tools](#tools)
- [Code Sniffers/Fixers](#code-sniffersfixers)
- [Framework specific](#framework-specific)
- [Other](#other)
- [Helpers](#helpers)
- [Resources](#resources)
# Tools
- [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) - Tokenizer based sniffer and fixer tool for various PHP Coding standards.
- [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) - A tool to automatically fix PHP Coding Standards issues.
# Code Sniffers/Fixers
## Framework specific
*Coding standards for a specific framework*
- [CakePHP](https://github.com/cakephp/cakephp-codesniffer) - Official package for CakePHP.
- [Laminas](https://github.com/laminas/laminas-coding-standard) - The coding standard ruleset for Laminas components.
- [Laravel](https://github.com/InteractionDesignFoundation/coding-standard) - PHPCS coding-standard for Laravel applications and packages.
- [WordPress/WordPress-Coding-Standards](https://github.com/WordPress/WordPress-Coding-Standards) - PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions.
## Other
*Collection of packages for the tools listed above*
- [easy-coding-standard/easy-coding-standard](https://github.com/easy-coding-standard/easy-coding-standard) - Prepared sets for both PHPCS and PHP-CS-Fixer.
- [php-collective/code-sniffer](https://github.com/php-collective/code-sniffer) - A powerful and opioniated sniffer ruleset on top of existing PSRs.
- [PHPCompatibility/PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility) - Collection of sniffer rules.
- [PHPCSStandards/PHPCSExtra](https://github.com/PHPCSStandards/PHPCSExtra) - A collection of code standards and sniffers for use with PHP_CodeSniffer.
- [slevomat/coding-standard](https://github.com/slevomat/coding-standard) - Provides many useful sniffs.
- [webimpress/coding-standard](https://github.com/webimpress/coding-standard) - Webimpress Coding Standard for PHPCS.
## Helpers
*Helper utilities or libraries around the use of sniffer or fixer collections*
- [PHPCSStandards/PHPCSUtils](https://github.com/PHPCSStandards/PHPCSUtils) - A suite of utility functions for use with PHP_CodeSniffer.
# Resources
- [PSR-1](https://www.php-fig.org/psr/psr-1/) - Basic Coding Standard.
- [PSR-2](https://www.php-fig.org/psr/psr-2/) - Coding Style Guide {deprecated}.
- [PSR-12](https://www.php-fig.org/psr/psr-12/) - Extends, expands and replaces PSR-2, the coding style guide.
- [PER 2.0](https://www.php-fig.org/per/coding-style/) - Latest successor of PSR standards (extends, expands and replaces PSR-12).