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

https://github.com/fox91/php-coding-standard

fox91 PHP Coding Standards
https://github.com/fox91/php-coding-standard

php phpcs-standard

Last synced: 6 months ago
JSON representation

fox91 PHP Coding Standards

Awesome Lists containing this project

README

          

# fox91 PHP Coding Standards

[![Latest version](https://img.shields.io/packagist/v/fox91/coding-standard.svg?colorB=007EC6)](https://packagist.org/packages/fox91/coding-standard)
[![Downloads](https://img.shields.io/packagist/dt/fox91/coding-standard.svg?colorB=007EC6)](https://packagist.org/packages/fox91/coding-standard)
[![Build status](https://github.com/fox91/php-coding-standard/workflows/php-ci/badge.svg?branch=main)](https://github.com/fox91/php-coding-standard/actions?query=workflow%3Aphp-ci+branch%3Amain)

Compatible with PHP `7.4`, `8.0`, `8.1`, `8.2`, `8.3` and `8.4`.

## Included tools

- [PHP_CodeSniffer](https://packagist.org/packages/squizlabs/php_codesniffer)
+ [`dealerdirect/phpcodesniffer-composer-installer`](https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer): PHP_CodeSniffer Standards Composer Installer
+ [`pheromone/phpcs-security-audit`](https://packagist.org/packages/pheromone/phpcs-security-audit): finds vulnerabilities and weaknesses related to security
+ [`sirbrillig/phpcs-import-detection`](https://packagist.org/packages/sirbrillig/phpcs-import-detection): look for unused or unimported symbols
+ [`sirbrillig/phpcs-variable-analysis`](https://packagist.org/packages/sirbrillig/phpcs-variable-analysis): detect problems with variables
+ [`slevomat/coding-standard`](https://packagist.org/packages/slevomat/coding-standard): complements Consistence Coding Standard by providing sniffs with additional checks
+ [`phpcompatibility/php-compatibility`](https://packagist.org/packages/phpcompatibility/php-compatibility): checks for PHP cross-version compatibility

## Optional tools

- [`pheromone/phpcs-security-audit`](https://packagist.org/packages/pheromone/phpcs-security-audit): finds vulnerabilities and weaknesses related to security in PHP code

## Installation

```bsh
composer require --dev fox91/coding-standard
```

Create a file named `.phpcs.xml.dist` in the root of your project:

```xml







src
tests




```