PHPackages                             comlaude/php-formatter - 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. comlaude/php-formatter

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

comlaude/php-formatter
======================

Pre-configured php formatter

1.0.4(1y ago)011.3k↓37.5%1MITPHP

Since May 20Pushed 1y ago9 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

ComLaude/php-formatter
======================

[](#comlaudephp-formatter)

Pre-configured php formatter using php-cs-fixer

[![Latest Stable Version](https://camo.githubusercontent.com/3d40631ed880baee740c63af8e2765bea6dcd120dc119ba03aaea058a60ab216/68747470733a2f2f706f7365722e707567782e6f72672f636f6d6c617564652f7068702d666f726d61747465722f76)](//packagist.org/packages/comlaude/php-formatter)[![License](https://camo.githubusercontent.com/06a36da4317d26b3179dd979787212e773b6c3ce2a0e682477a911e82559cf0c/68747470733a2f2f706f7365722e707567782e6f72672f636f6d6c617564652f7068702d666f726d61747465722f6c6963656e7365)](//packagist.org/packages/comlaude/php-formatter)

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

[](#installation)

### Composer

[](#composer)

Add the following to your require part within the composer.json:

```
"comlaude/php-formatter": "^1.0.0"
```

```
$ php composer update
```

or

```
$ php composer require comlaude/php-formatter
```

Integration
-----------

[](#integration)

### Lumen

[](#lumen)

Create a **config** folder in the root directory of your Lumen application and copy the content from **vendor/comlaude/php-formatter/config/php-formatter.php** to **config/php-formatter.php**.

Adjust the properties to your needs.

```
return [
    // A flag to enable/disable caching mode
    'cache' => false,
    // See https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/3.0/doc/rules/index.rst for available rules and rulesets
    'rules' => [
        '@PSR2' => true,
        '@DoctrineAnnotation' => true,
        'whitespace_after_comma_in_array' => true,
    ],
    // You can initialises your own ParallelConfig class here with your desired parameters
    // default is set to detect the environment and use the appropriate resources
    'parallel' => PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect(),
    // this is used to call function on configuring a finder as defined here https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/3.0/doc/config.rst
    'finder' => [
        'include'  => [],
        'exclude'  => ['bootstrap', 'vendor', 'storage'],
        'name'     => ['*.php'],
        'notname'  => ['*.blade.php'],
        'in'       => __DIR__ . '/../../../../',
    ];
```

Basic Usage
-----------

[](#basic-usage)

```
php vendor/bin/php-formatter fix
```

CI Automation usage
-------------------

[](#ci-automation-usage)

```
php vendor/bin/php-formatter fix -v --dry-run
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~280 days

Total

5

Last Release

701d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bbb703d9485c0d3ad76567fd5a979d1f3b0d3725afd3eaf0af4f83aca77cdf20?d=identicon)[david.krizanic](/maintainers/david.krizanic)

---

Top Contributors

[![SloEddy](https://avatars.githubusercontent.com/u/1764938?v=4)](https://github.com/SloEddy "SloEddy (6 commits)")

---

Tags

packagephp-cs-fixerComLaude

### Embed Badge

![Health badge](/badges/comlaude-php-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/comlaude-php-formatter/health.svg)](https://phpackages.com/packages/comlaude-php-formatter)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k289.5M63](/packages/jean85-pretty-package-versions)[stechstudio/laravel-php-cs-fixer

Easily format your Laravel Code with this Configuration file and accompanying artisan command.

146718.6k2](/packages/stechstudio-laravel-php-cs-fixer)[typo3/coding-standards

A set of coding guidelines for any TYPO3-related project or extension

662.8M379](/packages/typo3-coding-standards)[jubeki/laravel-code-style

Combine Custom Fixers with the ruleset of Laravel Pint to fix your code style in Laravel Applications/Packages.

56521.7k8](/packages/jubeki-laravel-code-style)

PHPackages © 2026

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