PHPackages                             bro/code - 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. bro/code

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

bro/code
========

The PHP Bro Code standard

v0.1.5(9y ago)07741MITPHPPHP &gt;=5.4

Since Aug 10Pushed 9y agoCompare

[ Source](https://github.com/mjacobus/bro-code)[ Packagist](https://packagist.org/packages/bro/code)[ RSS](/packages/bro-code/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (5)Used By (1)

Bro Code
--------

[](#bro-code)

The PHP Bro Code Standard preset for [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/master) specially made for Bros

[![Bro High Five](https://github.com/mjacobus/bro-code/raw/master/img/bro-high-five.jpg)](https://github.com/mjacobus/bro-code/blob/master/img/bro-high-five.jpg)

Code information:

[![Build Status](https://camo.githubusercontent.com/a1fb4b6f4bd7398403dfaafcfbd9bed08a66f6fec31a48bcbf5e8150611f052b/68747470733a2f2f7472617669732d63692e6f72672f6d6a61636f6275732f62726f2d636f64652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mjacobus/bro-code)[![Coverage Status](https://camo.githubusercontent.com/7ef62d8259adc2eed0bc2f9dce357de1b4b454cd4a38583eaad6fb7cd4699469/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d6a61636f6275732f62726f2d636f64652f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/mjacobus/bro-code?branch=master)[![Code Coverage Scrutinizer](https://camo.githubusercontent.com/aee67bc75ef30b5259cb2952440e13eae085c9a8501e46cb146a0e89d67abc12/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6a61636f6275732f62726f2d636f64652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mjacobus/bro-code/?branch=master)[![Code Climate](https://camo.githubusercontent.com/34c0a91e480d35763e9861954368d6d13d5e35139ce90b71ba308906243b822f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6a61636f6275732f62726f2d636f64652e706e67)](https://codeclimate.com/github/mjacobus/bro-code)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/269e7a76ad557a0b16413128c8e09563c45713238f8f1ff7ac7716a80ec10d69/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6a61636f6275732f62726f2d636f64652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mjacobus/bro-code/?branch=master)[![StyleCI](https://camo.githubusercontent.com/efa93411374026257218eea82b573e34782fc3b776eda6cae96fe6ca6d57b9d1/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353338393837342f736869656c64)](https://styleci.io/repos/65389874)

Package information:

[![Latest Stable Version](https://camo.githubusercontent.com/0e2c7bb36f89c45af1c9f5e03600aa4397195a0ab9b4989979df838b1a37daeb/68747470733a2f2f706f7365722e707567782e6f72672f62726f2f636f64652f762f737461626c652e737667)](https://packagist.org/packages/bro/code)[![Total Downloads](https://camo.githubusercontent.com/715827979db7704d3eb7f21412446c7787b17f598e993d94f665feb9fec88849/68747470733a2f2f706f7365722e707567782e6f72672f62726f2f636f64652f646f776e6c6f6164732e737667)](https://packagist.org/packages/bro/code)[![Latest Unstable Version](https://camo.githubusercontent.com/f96d565ff5811ea1cc17147374a4220ad52d4d56d447b522f5444cb8edca21ef/68747470733a2f2f706f7365722e707567782e6f72672f62726f2f636f64652f762f756e737461626c652e737667)](https://packagist.org/packages/bro/code)[![License](https://camo.githubusercontent.com/f9f782087ff05001ae995fc5268063360272010444ad4f577e6180ecaee09183/68747470733a2f2f706f7365722e707567782e6f72672f62726f2f636f64652f6c6963656e73652e737667)](https://packagist.org/packages/bro/code)[![Dependency Status](https://camo.githubusercontent.com/429048e75f2174e48d6806767c74e90b053d53fbef30852a9669de9f5272852d/68747470733a2f2f67656d6e617369756d2e636f6d2f6d6a61636f6275732f62726f2d636f64652e706e67)](https://gemnasium.com/mjacobus/bro-code)

Usage
-----

[](#usage)

### Bro Code Standard

[](#bro-code-standard)

It behaves exactly as the original (hopefully) but it as a personal favorite preset (much like in [Style CI](https://styleci.readme.io/docs/presets))

```
./vendor/bin/bro-code fix {path}

```

Installing
----------

[](#installing)

```
composer require --dev bro/code
```

Issues/Features proposals
-------------------------

[](#issuesfeatures-proposals)

[Here](https://github.com/mjacobus/bro-code/issues) is the issue tracker.

Lincense
--------

[](#lincense)

[MIT](MIT-LICENSE)

Authors
-------

[](#authors)

- [Marcelo Jacobus](https://github.com/mjacobus)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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 ~0 days

Total

3

Last Release

3611d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/226834?v=4)[Marcelo Jacobus](/maintainers/mjacobus)[@mjacobus](https://github.com/mjacobus)

---

Top Contributors

[![mjacobus](https://avatars.githubusercontent.com/u/226834?v=4)](https://github.com/mjacobus "mjacobus (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bro-code/health.svg)

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

###  Alternatives

[redaxo/php-cs-fixer-config

php-cs-fixer config for REDAXO

10105.6k16](/packages/redaxo-php-cs-fixer-config)

PHPackages © 2026

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