PHPackages                             facile/facile-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. facile/facile-coding-standard

Abandoned → [facile-it/facile-coding-standard](/?search=facile-it%2Ffacile-coding-standard)Composer-plugin

facile/facile-coding-standard
=============================

Facile.it coding standard

1.4.1(5mo ago)101189[1 PRs](https://github.com/facile-it/facile-coding-standard/pulls)MITPHPPHP ^7.4 || ^8.0CI passing

Since Aug 30Pushed 3mo ago24 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (31)Used By (0)

Facile.it PHP Coding Standard
=============================

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

[![PHP Version](https://camo.githubusercontent.com/39f74b306b25933f9e9dd63e6d2403f80b6496881143a3fcf48583a7e45f854b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545372e34253230253743253743253230253545382e302d626c7565)](https://camo.githubusercontent.com/39f74b306b25933f9e9dd63e6d2403f80b6496881143a3fcf48583a7e45f854b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545372e34253230253743253743253230253545382e302d626c7565)[![Build status](https://github.com/facile-it/facile-coding-standard/workflows/Continuous%20Integration/badge.svg)](https://github.com/facile-it/facile-coding-standard/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A1.x)[![Code coverage](https://camo.githubusercontent.com/e62a5c175338c35c5f0a7a26bc212ce6db7c120fd456dd301c510f087d7a63f2/68747470733a2f2f636f6465636f762e696f2f67682f666163696c652d69742f666163696c652d636f64696e672d7374616e646172642f6272616e63682f312e782f67726170682f62616467652e7376673f746f6b656e3d486c626b54326f4a6942)](https://codecov.io/gh/facile-it/facile-coding-standard)

[![Latest Stable Version](https://camo.githubusercontent.com/e6fb7c86a4dd8c837145e3836f38e5091c748d511f1f37fe7b29fc05f029b0a9/68747470733a2f2f706f7365722e707567782e6f72672f666163696c652d69742f666163696c652d636f64696e672d7374616e646172642f762f737461626c65)](https://packagist.org/packages/facile-it/facile-coding-standard)[![Total Downloads](https://camo.githubusercontent.com/5b694b2ea0101e66357ed007aca3b4aaaa278371c62f84d0aed352483e483a13/68747470733a2f2f706f7365722e707567782e6f72672f666163696c652d69742f666163696c652d636f64696e672d7374616e646172642f646f776e6c6f616473)](https://packagist.org/packages/facile-it/facile-coding-standard)[![Latest Unstable Version](https://camo.githubusercontent.com/b71d2709137b7ca1bd06f0b35a2140176f35b43a45645cda050898c2de666da7/68747470733a2f2f706f7365722e707567782e6f72672f666163696c652d69742f666163696c652d636f64696e672d7374616e646172642f762f756e737461626c65)](https://packagist.org/packages/facile-it/facile-coding-standard)[![License](https://camo.githubusercontent.com/8110cddb828233410888d7f3e02b35785ec11381821882d4c13a4a5361e4d7e8/68747470733a2f2f706f7365722e707567782e6f72672f666163696c652d69742f666163696c652d636f64696e672d7374616e646172642f6c6963656e7365)](https://packagist.org/packages/facile-it/facile-coding-standard)[![composer.lock](https://camo.githubusercontent.com/5e5a7b0505bc09fb66aa42ca637ea47b7c8ce38212d3394a5cdc83d252ff208d/68747470733a2f2f706f7365722e707567782e6f72672f666163696c652d69742f666163696c652d636f64696e672d7374616e646172642f636f6d706f7365726c6f636b)](https://packagist.org/packages/facile-it/facile-coding-standard)

Repository with PHP coding standard ruleset, based on PHP-CS-Fixer.

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

[](#installation)

Currently, [Composer](https://getcomposer.org/) is the only supported installation tool.

```
$ composer require --dev facile-it/facile-coding-standard

```

When you install it, a plugin will ask you some questions to setup your project automatically.

The installer will add a `.php-cs-fixer.dist.php` file in your project root directory, then you can edit manually if you need some changes.

The CS config will be configured to find your project files using composer autoload sources.

Only `psr-0`, `psr-4` and `classmap` autoloads are supported.

The installer will also add two scripts in your `composer.json`;

```
"scripts": {
  "cs-check": "php-cs-fixer fix --dry-run --diff",
  "cs-fix": "php-cs-fixer fix --diff"
}
```

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

[](#configuration)

The installation configuration should be enough to use it.

If you need to change the CS config file, we suggest to don't edit the main `.php-cs-fixer.dist.php` file.

You can create a new file `.php-cs-fixer.php` with something like this:

```
