PHPackages                             drupol/phpcsfixer-configs-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. drupol/phpcsfixer-configs-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

drupol/phpcsfixer-configs-php
=============================

Base PHP CS Fixer configurations.

2.0.21(1y ago)5377.9k↓11.5%2[1 PRs](https://github.com/drupol/phpcsfixer-configs-php/pulls)3MITPHPPHP &gt;= 7.4CI passing

Since Nov 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/drupol/phpcsfixer-configs-php)[ Packagist](https://packagist.org/packages/drupol/phpcsfixer-configs-php)[ GitHub Sponsors](https://github.com/drupol)[ RSS](/packages/drupol-phpcsfixer-configs-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (45)Used By (3)

[![Latest Stable Version](https://camo.githubusercontent.com/9d6c232578524a6ca5cd840e228329c17b32c5398aa816c76f882eac26f606cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f647275706f6c2f706870637366697865722d636f6e666967732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/phpcsfixer-configs-php)[![GitHub stars](https://camo.githubusercontent.com/496d11a85b69e2508be8dc8b73fddb6995619008dfe957a637fb89057f8e6a34/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f647275706f6c2f706870637366697865722d636f6e666967732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/phpcsfixer-configs-php)[![Total Downloads](https://camo.githubusercontent.com/a9f6f0f1967285c190f250a60c03d2c740569425f17f59161f918ea2a3ada679/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647275706f6c2f706870637366697865722d636f6e666967732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/phpcsfixer-configs-php)[![GitHub Workflow Status](https://camo.githubusercontent.com/b623e2c8b7493e5a563ac1d3549df9932f035e9d19dc44d9da449bcd11e972cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f647275706f6c2f706870637366697865722d636f6e666967732d7068702f436f6e74696e756f7573253230496e746567726174696f6e3f7374796c653d666c61742d737175617265)](https://github.com/drupol/phpcsfixer-configs-php/actions)[![License](https://camo.githubusercontent.com/ee416a77353badf60193305608b242f6f4400c85e0c175ae82f51478e1a2616c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647275706f6c2f706870637366697865722d636f6e666967732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/phpcsfixer-configs-php)[![Donate!](https://camo.githubusercontent.com/a71f45de7e408be2477113d166e9ee94c90bbf814a1373fd154aa5b6652302de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d4769746875622d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/sponsors/drupol)[![Donate!](https://camo.githubusercontent.com/cd335a74177c62640acfbb95db4f1848f818606fdf17dc36aed4eef93061dc10/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d50617970616c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.paypal.me/drupol)

PHP-CS-Fixer Configurations
===========================

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

Description
-----------

[](#description)

This package provides a set [PHP-Cs-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)configuration objects ready to be used in any project using PHP-Cs-Fixer.

Documentation
-------------

[](#documentation)

Available configuration objects:

- `drupol\PhpCsFixerConfigsPhp\Config\PSR12`
- `drupol\PhpCsFixerConfigsPhp\Config\Php56`
- `drupol\PhpCsFixerConfigsPhp\Config\Php7`
- `drupol\PhpCsFixerConfigsPhp\Config\Php71`
- `drupol\PhpCsFixerConfigsPhp\Config\Php72`
- `drupol\PhpCsFixerConfigsPhp\Config\Php73`

Each configuration object is an object implementing `PhpCsFixer/ConfigInterface`.

It provides a default configuration, mandatory to configure PHP CS Fixer.

It implements the method(s):

```
    public function withRulesFrom(...$configs);
```

Where the `$configs` parameters must implements `PhpCsFixer/ConfigInterface`.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4

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

[](#installation)

`composer require --dev drupol/phpcsfixer-configs-php`

Usage
-----

[](#usage)

See the [PHP CS Fixer documentation](https://github.com/FriendsOfPHP/PHP-CS-Fixer) on how to use the configuration object.

Code quality, tests and benchmarks
----------------------------------

[](#code-quality-tests-and-benchmarks)

Every time changes are introduced into the library, [Github Actions](https://github.com/drupol/phpcsfixer-configs-php/actions) run the tests and the benchmarks.

The library has tests written with [PHPSpec](http://www.phpspec.net/). Feel free to check them out in the `spec` directory. Run `composer phpspec` to trigger the tests.

Before each commit some inspections are executed with [GrumPHP](https://github.com/phpro/grumphp), run `./vendor/bin/grumphp run` to check manually.

[PHPInfection](https://github.com/infection/infection) is used to ensure that your code is properly tested, run `composer infection` to test your code.

Contributing
------------

[](#contributing)

Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 75.9% 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 ~43 days

Recently: every ~111 days

Total

43

Last Release

588d ago

Major Versions

1.0.34 → 2.0.02021-05-07

PHP version history (4 changes)1.0.14.0-devPHP ^5.6

1.0.17PHP &gt;= 7.1.3

1.0.17.0-devPHP &gt;= 5.6

2.0.15PHP &gt;= 7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/252042?v=4)[Pol Dellaiera](/maintainers/drupol)[@drupol](https://github.com/drupol)

---

Top Contributors

[![drupol](https://avatars.githubusercontent.com/u/252042?v=4)](https://github.com/drupol "drupol (126 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (28 commits)")[![FlorentTorregrosa](https://avatars.githubusercontent.com/u/1962368?v=4)](https://github.com/FlorentTorregrosa "FlorentTorregrosa (11 commits)")[![FlorentTorregrosaSmile](https://avatars.githubusercontent.com/u/171150379?v=4)](https://github.com/FlorentTorregrosaSmile "FlorentTorregrosaSmile (1 commits)")

---

Tags

configphpcsfixer

### Embed Badge

![Health badge](/badges/drupol-phpcsfixer-configs-php/health.svg)

```
[![Health](https://phpackages.com/badges/drupol-phpcsfixer-configs-php/health.svg)](https://phpackages.com/packages/drupol-phpcsfixer-configs-php)
```

###  Alternatives

[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[bruli/php-git-hooks

Git hooks for PHP projects.

675370.8k5](/packages/bruli-php-git-hooks)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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