PHPackages                             fattureincloud/php-code-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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. fattureincloud/php-code-standard

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

fattureincloud/php-code-standard
================================

PHP CS Fixer coding standard, extended from @PhpCsFixer.

1.1.8(7mo ago)511.2k↓37.5%11MITPHPPHP &gt;=5.4.0

Since Jun 3Pushed 7mo ago2 watchersCompare

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

READMEChangelog (3)DependenciesVersions (11)Used By (1)

php-coding-standard
===================

[](#php-coding-standard)

PHP CS Fixer coding standard, extended from @PhpCsFixer.

Prerequisites
-------------

[](#prerequisites)

You need to install PHP CS Fixer installed locally in the project and husky + lint-staged configured in order to make all of this working properly.

#### Install PHP CS Fixer

[](#install-php-cs-fixer)

```
composer require friendsofphp/php-cs-fixer --dev

```

#### Install husky + lint-staged

[](#install-husky--lint-staged)

Create a `package.json` like this one:

```
{
  "description": "For automation purposes",
  "license": "MIT",
  "devDependencies": {
    "husky": "^4.2.5",
    "lint-staged": "^10.2.7"
  },
  "lint-staged": {},
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  }
}

```

Run `npm install`.

Add these lines to `composer.json`:

```
"scripts": {
    ...
    "post-install-cmd": "npm_config_loglevel=silent npm install",
    "post-update-cmd": "npm_config_loglevel=silent npm install",
    ...
}

```

Finally, remember to add `node_modules/` to `.gitignore`.

Installation and usage
----------------------

[](#installation-and-usage)

```
composer require fattureincloud/php-code-standard --dev

```

#### Add lint-staged action

[](#add-lint-staged-action)

Put this line as lint-staged action in `package.json` in order to execute PHP CS Fixer on all the staged files at commit time.

```
"lint-staged": {
    ...
    "*.php": "php ./vendor/bin/php-cs-fixer fix --allow-risky=yes --config ./vendor/fattureincloud/php-code-standard/.php-cs-fixer.php"
    ...
},

```

#### Add composer script (optional)

[](#add-composer-script-optional)

Add the following line under `composer.json` scripts property.

```
"scripts": {
    ...
    "php-cs-fixer": "./vendor/bin/php-cs-fixer --allow-risky=yes --config=./vendor/fattureincloud/php-code-standard/.php-cs-fixer.php"
    ...
}

```

### PHPStorm

[](#phpstorm)

#### Enable inspections

[](#enable-inspections)

- Search for "PHP CS Fixer" under Quality Tools
- Add a local configuration with path `$PROJECT_DIR$/vendor/friendsofphp/php-cs-fixer/php-cs-fixer`
- Search for "PHP CS Fixer validation" under Inspections
- Flag "Allow ricky rules"
- Select Custom ruleset
- Click on the 3 dots and enter `/vendor/fattureincloud/php-code-standard/.php-cs-fixer.php`

#### Configure file watcher

[](#configure-file-watcher)

Create a file watcher with the following values:

```
Name: php-cs-fixer
File type: PHP
Scope: Current File
Program: $ProjectFileDir$/vendor/friendsofphp/php-cs-fixer/php-cs-fixer
Arguments: fix --allow-risky=yes --config=$ProjectFileDir$/vendor/fattureincloud/php-code-standard/.php-cs-fixer.php $FileDir$/$FileName$
Output paths to refresh: $FileDir$/$FileName$

```

De-flag all the advanced options.

#### Configure external tool (optional)

[](#configure-external-tool-optional)

Create an external tool with the following values:

```
Name: Run PHP CS Fixer
Description: Run PHP CS Fixer
Group: External Tools
Program: $ProjectFileDir$/vendor/friendsofphp/php-cs-fixer/php-cs-fixer
Arguments: fix --allow-risky=yes --config=$ProjectFileDir$/vendor/fattureincloud/php-code-standard/.php-cs-fixer.php --verbose $FilePath$
Working directory: $ProjectFileDir$

```

Flag `Synchronize files after execution` and `Open console for tool output`.

### VSCode

[](#vscode)

TODO

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance64

Regular maintenance activity

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~217 days

Recently: every ~175 days

Total

10

Last Release

216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bedf8b1b6f95ab71fbdfed85ffaa80abe343c313a945c8e57bc975c84c153e1?d=identicon)[m.valota.ts](/maintainers/m.valota.ts)

![](https://www.gravatar.com/avatar/de2624d87afdcfb82c5fd6ed7a96684b90419c930179643992d1a7d9fb12fac1?d=identicon)[fattureincloud](/maintainers/fattureincloud)

---

Top Contributors

[![mattmilesi](https://avatars.githubusercontent.com/u/6038939?v=4)](https://github.com/mattmilesi "mattmilesi (17 commits)")[![emajo](https://avatars.githubusercontent.com/u/48432054?v=4)](https://github.com/emajo "emajo (3 commits)")[![stefanozanini](https://avatars.githubusercontent.com/u/22619776?v=4)](https://github.com/stefanozanini "stefanozanini (2 commits)")

### Embed Badge

![Health badge](/badges/fattureincloud-php-code-standard/health.svg)

```
[![Health](https://phpackages.com/badges/fattureincloud-php-code-standard/health.svg)](https://phpackages.com/packages/fattureincloud-php-code-standard)
```

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

86787.8M343](/packages/league-container)[stella-maris/clock

A pre-release of the proposed PSR-20 Clock-Interface

7947.5M2](/packages/stella-maris-clock)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[inpsyde/modularity

Modular PSR-11 implementation for WordPress plugins, themes or libraries.

54383.3k3](/packages/inpsyde-modularity)[php-standard-library/phpstan-extension

PHPStan PSL extension

201.2M13](/packages/php-standard-library-phpstan-extension)[elie29/zend-phpdi-config

PSR-11 PHP-DI autowire container configurator for Laminas, Mezzio, ZF2, ZF3 and Zend Expressive applications

20238.6k7](/packages/elie29-zend-phpdi-config)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
