PHPackages                             blitz-php/coding-standard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. blitz-php/coding-standard

ActiveLibrary[Testing &amp; Quality](/categories/testing)

blitz-php/coding-standard
=========================

Normes de codage officielles pour Blitz PHP basées sur PHP CS Fixer

1.6.0(2mo ago)06.6k↓33.3%[1 PRs](https://github.com/blitz-php/coding-standard/pulls)17MITPHPPHP ^8.2CI passing

Since Apr 18Pushed 1y agoCompare

[ Source](https://github.com/blitz-php/coding-standard)[ Packagist](https://packagist.org/packages/blitz-php/coding-standard)[ RSS](/packages/blitz-php-coding-standard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (10)Versions (10)Used By (17)

Blitz-PHP Coding Standard
=========================

[](#blitz-php-coding-standard)

[![Unit Tests](https://github.com/blitz-php/coding-standard/actions/workflows/test-phpunit.yml/badge.svg)](https://github.com/blitz-php/coding-standard/actions/workflows/test-phpunit.yml)[![Coding Standards](https://github.com/blitz-php/coding-standard/actions/workflows/test-coding-standards.yml/badge.svg)](https://github.com/blitz-php/coding-standard/actions/workflows/test-coding-standards.yml)[![PHPStan Static Analysis](https://github.com/blitz-php/coding-standard/actions/workflows/test-phpstan.yml/badge.svg)](https://github.com/blitz-php/coding-standard/actions/workflows/test-phpstan.yml)[![PHPStan level](https://camo.githubusercontent.com/8e9b3549f0d6ec7e6099edb2839f0eacef08777ced80ea3160dd7311fff08ace/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6d61782532306c6576656c2d627269676874677265656e)](phpstan.neon.dist)[![Coverage Status](https://camo.githubusercontent.com/47a19e419a85ef844ab18678345d9ce6026d6c636329fe7c9ea37dc0b303a8a1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f626c69747a2d7068702f636f64696e672d7374616e646172642f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/blitz-php/coding-standard?branch=main)[![Latest Stable Version](https://camo.githubusercontent.com/778e6433d8f85c734edd2916582d141d19ca445a15272a38d91c8385515d35b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626c69747a2d7068702f636f64696e672d7374616e646172642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/blitz-php/coding-standard)[![License](https://camo.githubusercontent.com/f2c34d14fd12f02c36d5b918ad467d07466209cd0345b62f8f5d10feb357c9e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626c69747a2d7068702f636f64696e672d7374616e64617264)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/c1b24f8dc36e07bb09809a84862f60db37ef636037986d3e531e415a7efbd9aa/68747470733a2f2f706f7365722e707567782e6f72672f626c69747a2d7068702f636f64696e672d7374616e646172642f646f776e6c6f616473)](https://packagist.org/packages/blitz-php/coding-standard)

Cette bibliothèque contient les normes de codage officielles de Blitz-PHP basées sur [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) et alimenté par [Nexus CS Config](https://github.com/NexusPHP/cs-config). Les règles sont inspirées de celles de [CodeIgniter](https://github.com/CodeIgniter/coding-standard)

Installation
------------

[](#installation)

Vous pouvez ajouter cette bibliothèque en tant que dépendance locale par projet à votre projet en utilisant [Composer](https://getcomposer.org/):

```
composer require blitz-php/coding-standard

```

Si vous n'avez besoin de cette bibliothèque que pendant le développement, par exemple pour exécuter la suite de tests de votre projet, alors vous devez l'ajouter en tant que dépendance de développement:

```
composer require --dev blitz-php/coding-standard

```

Configuration
-------------

[](#configuration)

Pour commencer, créons un fichier `.php-cs-fixer.dist.php` à la racine de votre projet.

```
