PHPackages                             prestigehq/badger - 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. prestigehq/badger

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

prestigehq/badger
=================

A Badge Generator For Laravel 5 and 6.

v2.0.1(3y ago)03MITPHPPHP ^7.1.3

Since Apr 6Pushed 3y agoCompare

[ Source](https://github.com/PrestigeHQ/Badger)[ Packagist](https://packagist.org/packages/prestigehq/badger)[ RSS](/packages/prestigehq-badger/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Cachet Badger
=============

[](#cachet-badger)

A badge generator for Laravel 5 and 6.

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

[](#installation)

This version requires [PHP](https://php.net) 7.1 - 7.3, and supports Laravel 5.5 and above.

To get the latest version, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require cachethq/badger
```

Once installed, if you are not using automatic package discovery, then you need to register the `CachetHQ\Badger\BadgerServiceProvider` service provider in your `config/app.php`.

Examples
--------

[](#examples)

Get started immediately:

```
// Using the facade
Badger::generate('license', 'MIT', 'blue', 'plastic')

// Dependency injection example
$badger->generate('license', 'MIT', '#ff69b4', 'plastic')
```

[![License Blue MIT](https://camo.githubusercontent.com/24b8b9c71f8451a171490a3bf08070da7203c72094a82b7af006db7118164bfe/68747470733a2f2f63646e2e7261776769742e636f6d2f43616368657448512f4261646765722f6d61737465722f74657374732f73747562732f6c6963656e73652d4d49542d626c75652d706c61737469632e737667)](https://camo.githubusercontent.com/24b8b9c71f8451a171490a3bf08070da7203c72094a82b7af006db7118164bfe/68747470733a2f2f63646e2e7261776769742e636f6d2f43616368657448512f4261646765722f6d61737465722f74657374732f73747562732f6c6963656e73652d4d49542d626c75652d706c61737469632e737667)[![License Custom MIT](https://camo.githubusercontent.com/3480aefc7f4419f985ff9f9f697717a7f5e0f7faa00163c24ea176fd35f4bac1/68747470733a2f2f63646e2e7261776769742e636f6d2f43616368657448512f4261646765722f6d61737465722f74657374732f73747562732f6c6963656e73652d4d49542d637573746f6d2d706c61737469632e737667)](https://camo.githubusercontent.com/3480aefc7f4419f985ff9f9f697717a7f5e0f7faa00163c24ea176fd35f4bac1/68747470733a2f2f63646e2e7261776769742e636f6d2f43616368657448512f4261646765722f6d61737465722f74657374732f73747562732f6c6963656e73652d4d49542d637573746f6d2d706c61737469632e737667)

Usage
-----

[](#usage)

The generate method takes four parameters:

```
Badger::generate('license', 'MIT', 'blue', 'flat-square')
```

The first parameter is the subject, or what it is the badge is showing. In the example above this is the license. The second parameter is the value (the right hand of the badge). Next is the color of the badge. This can be one of the following preset colors *or* a valid hex string.

- `brightgreen`
- `green`
- `yellow`
- `yellowgreen`
- `orange`
- `red`
- `blue`
- `grey`
- `lightgray`

And finally the fourth parameter is the badge type. This determines the style of the badge and can be one of the four values below.

- `flat-square` (default)
- `plastic-flat`, `flat`
- `plastic`
- `social` (without links)

Security
--------

[](#security)

If you discover a security vulnerability within this package, please e-mail us at . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

Cachet Badger is licensed under [The MIT License (MIT)](LICENSE).

Based on the work done at [badges/poser](https://github.com/badges/poser).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~581 days

Total

3

Last Release

1428d ago

Major Versions

v1.0.0 → v2.0.02019-11-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/abeb87a2331a55b4877d22dea70c2bdd78110e48c647eebef9b261ce887d08d9?d=identicon)[jacques](/maintainers/jacques)

---

Top Contributors

[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (3 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")[![jacques](https://avatars.githubusercontent.com/u/2543?v=4)](https://github.com/jacques "jacques (1 commits)")

---

Tags

svgbadgecachetshieldbadgerCachetHQ

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cachethq/badger

A badge generator for Laravel.

2241.0k1](/packages/cachethq-badger)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M858](/packages/illuminate-pagination)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M177](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)

PHPackages © 2026

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