PHPackages                             dav-m85/busfactor - 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. dav-m85/busfactor

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

dav-m85/busfactor
=================

Find out which file in your git is poorly maintained

0.2.0(11y ago)612MITPHP

Since Apr 20Pushed 11y agoCompare

[ Source](https://github.com/dav-m85/busfactor)[ Packagist](https://packagist.org/packages/dav-m85/busfactor)[ Docs](https://github.com/dav-m85/busfactor)[ RSS](/packages/dav-m85-busfactor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

\#busfactor

[![Build Status](https://camo.githubusercontent.com/c526f164a378a3824ce0259885dc72e46cc2a107c4e97b7c18633526fc4638ab/68747470733a2f2f7472617669732d63692e6f72672f6461762d6d38352f627573666163746f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/dav-m85/busfactor)

*busfactor* generates a coverage report indicating how much each contributor worked on each file of a git repo. It helps pinpoint part of the code that are poorly maintained/known by the teams working on it.

[![screenshot](https://github.com/dav-m85/busfactor/raw/master/doc/screenshot.png)](https://github.com/dav-m85/busfactor/raw/master/doc/screenshot.png)

If someone gets hit by a bus, some files may become more difficult to maintain further.

It was inspired by a GoogleIO talk given by Brian Fitzpatrick, Ben Collins-Sussman, [The Myth of the Genius Programmer](https://www.youtube.com/watch?v=0SARbwvhupQ).

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

[](#installation)

### With composer

[](#with-composer)

```
composer global require "dav-m85/busfactor=0.2.*"
```

Make sure your global composer folder is in your PATH.

### By cloning the repo

[](#by-cloning-the-repo)

```
git clone http://github.com/dav-m85/busfactor.git
cd busfactor
composer install
```

### As a dependency in another composer project

[](#as-a-dependency-in-another-composer-project)

Add the following to your composer.json

```
{
    "require-dev": {
        "dav-m85/busfactor": "0.2.*"
    }
}
```

Then in your project folder:

```
composer install
```

Usage
-----

[](#usage)

Given you have a repository `my/git/repository`, you can generate a report with following command (`output/parent/folder` has to be writeable):

```
busfactor generate my/git/repository output/parent/folder
```

Then open `output/parent/folder/index.html` with your browser.

If you don't specify an output folder, the report will automatically be generated to `out/` folder relative to [busfactor](busfactor) file.

If you intend to serve generated files, specify an asset-url options like this:

```
busfactor generate my/git/repository output/parent/folder --asset-url http://example.com/root/path

```

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

[](#contributing)

You can contribute in various ways:

*Report bugs* in the project [issues](../../issues) section. Please make sure you know how to report one, general understanding of [this document](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html) may help ;)

You want to *fix a bug*? Take an issue or fill one, assign yourself on it and when done, submit a Pull Request. I'll do my best to read it in a timely fashion and approve it.

Note that this project is following [Semantic Versioning 2.0.0](http://semver.org/).

You like this project? Fork it, star it, talk about it!

Testing
-------

[](#testing)

Tests use [PHPUnit](https://phpunit.de). Simply run the following command in busfactor project directory:

```
vendor/bin/phpunit

```

Credits
-------

[](#credits)

Maintainer: [dav-m85](http://github.com/dav-m85)

Contributors: [Triiistan](http://github.com/Triiistan), you?

License
-------

[](#license)

*busfactor* is released under the MIT license. A copy can be found inside the project [here](LICENSE.txt), or at

Related
-------

[](#related)

-  (Repository class was borrowed from this project)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

4166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c32ed95d482fa49b3b5a0bc08e6a414d422c8b8ad518fca35fefb0b1f3c9b3d0?d=identicon)[dav-m85](/maintainers/dav-m85)

---

Top Contributors

[![dav-m85](https://avatars.githubusercontent.com/u/1519726?v=4)](https://github.com/dav-m85 "dav-m85 (24 commits)")

---

Tags

symfonygitstatistics

### Embed Badge

![Health badge](/badges/dav-m85-busfactor/health.svg)

```
[![Health](https://phpackages.com/badges/dav-m85-busfactor/health.svg)](https://phpackages.com/packages/dav-m85-busfactor)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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