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 today

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 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

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

1620d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2689026?v=4)[brackets](/maintainers/brackets)[@Brackets](https://github.com/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.5k257.0M27.9k](/packages/friendsofphp-php-cs-fixer)[composer/composer

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

29.5k199.6M3.4k](/packages/composer-composer)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103574.3k69](/packages/friendsoftypo3-content-blocks)[api-platform/openapi

Models to build and serialize an OpenAPI specification.

425.3M110](/packages/api-platform-openapi)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.9k1](/packages/phpactor-phpactor)[eliashaeussler/typo3-solver

Solver - Extends TYPO3's exception handling with AI generated solutions. Problems can also be solved from command line. Several OpenAI parameters are configurable and prompts and solution providers can be customized as desired.

302.1k](/packages/eliashaeussler-typo3-solver)

PHPackages © 2026

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