PHPackages                             brackets/code-style-fixer - 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. brackets/code-style-fixer

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

brackets/code-style-fixer
=========================

Fixing php code style

v1.0.8(4y ago)213.7k1MITPHPPHP &gt;=7.0CI failing

Since Apr 24Pushed 4y ago2 watchersCompare

[ Source](https://github.com/BRACKETS-by-TRIAD/code-style-fixer)[ Packagist](https://packagist.org/packages/brackets/code-style-fixer)[ RSS](/packages/brackets-code-style-fixer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (5)Versions (12)Used By (1)

PhpCsFixer and Git Hooks
========================

[](#phpcsfixer-and-git-hooks)

This repository is the source for Php Cs Fixer installation to your project. It uses brainmaestro/composer-git-hooks and friendsofphp/php-cs-fixer for its purpose and creates only wrapper for this packages.

First you need to require this composer package:

```
composer require --dev brackets/code-style-fixer

```

Next you have to add this to script section of `composer.json`

```
"scripts": {
    ...
    "post-install-cmd": [
        ...
        "[ $COMPOSER_DEV_MODE -eq 0 ] || ./vendor/bin/code-style-fixer.sh git-hooks-add --ignore-lock"
    ],
    "post-update-cmd": [
        ...
        "[ $COMPOSER_DEV_MODE -eq 0 ] || ./vendor/bin/code-style-fixer.sh git-hooks-update"
    ]
}

```

And then you have to install the package

```
./vendor/bin/code-style-fixer.sh install

```

Now you should have installed the package and on every pre-commit the fixer will run. On every pre-push the fixer will run, but only to check if everything is ok. If not, push will fail.

Additional commands
-------------------

[](#additional-commands)

### Git Hooks

[](#git-hooks)

You can manipulate the git hooks by

```
./vendor/bin/code-style-fixer.sh git-hooks-add | git-hooks-update | git-hooks-remove | git-hooks-list

```

This commands are just wrapper for brainmaestro/composer-git-hooks package, so see  for readme.

### Php Cs Fixer

[](#php-cs-fixer)

To manually run phpCsFixer script use

```
./vendor/bin/code-style-fixer.sh fix

```

You can use all parameters defined in , the fix command is just a wrapper for php-cs-fixer.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 91.1% 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 ~131 days

Recently: every ~243 days

Total

9

Last Release

1527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/646d83c7b998c5d1a93bd3826668765ab188455f558fbec6ae7b5f1524e8377a?d=identicon)[brackets](/maintainers/brackets)

---

Top Contributors

[![dejwCake](https://avatars.githubusercontent.com/u/22255647?v=4)](https://github.com/dejwCake "dejwCake (41 commits)")[![odziomkova-brackets](https://avatars.githubusercontent.com/u/73235963?v=4)](https://github.com/odziomkova-brackets "odziomkova-brackets (2 commits)")[![RichardDominik](https://avatars.githubusercontent.com/u/13850339?v=4)](https://github.com/RichardDominik "RichardDominik (2 commits)")

---

Tags

composerfixerstylegit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brackets-code-style-fixer/health.svg)

```
[![Health](https://phpackages.com/badges/brackets-code-style-fixer/health.svg)](https://phpackages.com/packages/brackets-code-style-fixer)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)[franzl/studio

Develop your Composer libraries with style

1.1k634.5k15](/packages/franzl-studio)[balbuf/composer-git-merge-driver

Custom git merge driver to minimize merge conflicts in composer.json and composer.lock files.

137268.0k](/packages/balbuf-composer-git-merge-driver)[nilportugues/php_backslasher

Adds all PHP internal functions to its namespace by adding backslash to them. Improves the application's performance when OPCache is on.

889.3k18](/packages/nilportugues-php-backslasher)[mediamonks/composer-vendor-cleaner

Removes as much as possible from your vendor dir when space or number of files is important

2658.4k](/packages/mediamonks-composer-vendor-cleaner)

PHPackages © 2026

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