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

Abandoned → [cachethq/badger](/?search=cachethq%2Fbadger)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

alt-three/badger
================

A Badge Generator For Laravel 5

v5.1.0(7y ago)51162.5k—4.5%MITPHPPHP ^7.1.3

Since Feb 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/AltThree/Badger)[ Packagist](https://packagist.org/packages/alt-three/badger)[ RSS](/packages/alt-three-badger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (21)Used By (0)

Alt Three Badger
================

[](#alt-three-badger)

A badge generator for Laravel 5.

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

[](#installation)

This version requires [PHP](https://php.net) 7.1 or 7.2, and supports Laravel 5.5 - 5.7 only.

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

```
$ composer require alt-three/badger
```

Once installed, if you are not using automatic package discovery, then you need to register the `AltThree\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/85ae0af0d4adcdb9759d9ae8f4e23bc08a6847c098a0010b2bfc8b7fff5c5d36/68747470733a2f2f63646e2e7261776769742e636f6d2f416c7454687265652f4261646765722f6d61737465722f74657374732f73747562732f6c6963656e73652d4d49542d626c75652d706c61737469632e737667)](https://camo.githubusercontent.com/85ae0af0d4adcdb9759d9ae8f4e23bc08a6847c098a0010b2bfc8b7fff5c5d36/68747470733a2f2f63646e2e7261776769742e636f6d2f416c7454687265652f4261646765722f6d61737465722f74657374732f73747562732f6c6963656e73652d4d49542d626c75652d706c61737469632e737667)[![License Custom MIT](https://camo.githubusercontent.com/6504147a6b24aa4c9b0232215c44451c95591b410110abe536babe6d621dbe72/68747470733a2f2f63646e2e7261776769742e636f6d2f416c7454687265652f4261646765722f6d61737465722f74657374732f73747562732f6c6963656e73652d4d49542d637573746f6d2d706c61737469632e737667)](https://camo.githubusercontent.com/6504147a6b24aa4c9b0232215c44451c95591b410110abe536babe6d621dbe72/68747470733a2f2f63646e2e7261776769742e636f6d2f416c7454687265652f4261646765722f6d61737465722f74657374732f73747562732f6c6963656e73652d4d49542d637573746f6d2d706c61737469632e737667)

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)

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

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 65.5% 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 ~51 days

Recently: every ~104 days

Total

20

Last Release

2788d ago

Major Versions

v1.0.7 → 2.0.x-dev2016-02-17

v2.0.0 → v3.0.02016-02-20

v3.2.0 → v4.0.02017-08-06

v4.0.1 → v5.0.02018-03-03

PHP version history (3 changes)v1.0.0PHP &gt;=5.5.9

v4.0.0PHP ^7.0

v5.0.0PHP ^7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

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

![](https://www.gravatar.com/avatar/9e4934b15ff7d8cffabece955994bed29b31429f4c2e8f13fa0868c753bb1c30?d=identicon)[jbrooksuk](/maintainers/jbrooksuk)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (57 commits)")[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (29 commits)")[![joecohens](https://avatars.githubusercontent.com/u/1803556?v=4)](https://github.com/joecohens "joecohens (1 commits)")

---

Tags

svgAlt Threebadgeshieldbadger

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cachethq/badger

A badge generator for Laravel.

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

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/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.5M178](/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)
