An open API service indexing awesome lists of open source software.

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

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).