PHPackages                             networkrailbusinesssystems/badges - 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. networkrailbusinesssystems/badges

ActiveLibrary

networkrailbusinesssystems/badges
=================================

Generate readme badges during your pre-push

1.5.0(1mo ago)08.8k↓50%11MITPHP

Since Jan 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Network-Rail-Business-Systems/badges)[ Packagist](https://packagist.org/packages/networkrailbusinesssystems/badges)[ RSS](/packages/networkrailbusinesssystems-badges/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)DependenciesVersions (11)Used By (11)

Readme Badges Generator
=======================

[](#readme-badges-generator)

Generate badges as part of your pre-push hooks!

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

[](#installation)

1. Add `networkrailbusinesssystems/badges` to your Composer dev dependencies

```
composer require --dev networkrailbusinesssystems/badges
```

2. Ensure that PHPUnit outputs logs and coverage with the following settings:

```

```

3. Add the following commands to the pre-push hook:

```
php vendor/networkrailbusinesssystems/badges/badges.php
git add .github/*.svg
git diff-index --quiet --cached HEAD || git commit -m "Updated badges" --no-verify
```

4. Add the following lines to `readme.md`, excluding badges as required:

```
![Composer status](.github/composer.svg)
![Coverage status](.github/coverage.svg)
![Frontend version](.github/frontend.svg)
![Laravel version](.github/laravel.svg)
![NPM status](.github/npm.svg)
![PHP version](.github/php.svg)
![Tests status](.github/tests.svg)
![Views status](.github/views.svg)
```

Debug driver
------------

[](#debug-driver)

You must have either xdebug or PCOV installed to run coverage checks, and enable the coverage mode.

PCOV is generally newer and faster than XDebug, however it may not be as accurate.

### XDebug

[](#xdebug)

1. `sudo apt install php-xdebug`
2. Add the following to the end of your `php.ini`:

```
[xdebug]
xdebug.mode=coverage
```

### PCOV

[](#pcov)

1. `sudo apt install php8.2-dev`
2. `sudo apt install php-pear`
3. `sudo pecl install pcov`
4. Add the following to the end of your `php.ini`:

```
[pcov]
extension=pcov.so
```

Usage
-----

[](#usage)

1. Run `git push` as normal
2. The pre-push hooks will fire, running your tests and coverage
3. The badges will automatically generate, update, and be added to the commit

Views status
------------

[](#views-status)

Use the `AssertsViewsRender` trait and extension in the [LaravelTestingTraits](https://github.com/AnthonyEdmonds/laravel-testing-traits/) library to enable tracking the status of rendered views.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance89

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity48

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

Recently: every ~108 days

Total

9

Last Release

56d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17785811?v=4)[Anthony Edmonds](/maintainers/AnthonyEdmonds)[@AnthonyEdmonds](https://github.com/AnthonyEdmonds)

---

Top Contributors

[![AnthonyEdmonds](https://avatars.githubusercontent.com/u/17785811?v=4)](https://github.com/AnthonyEdmonds "AnthonyEdmonds (18 commits)")

### Embed Badge

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

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

PHPackages © 2026

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