Badger is a PHP package — with a Laravel service provider — that generates badges, commonly known as Shields.

Example of Badger

The package is tested, easy to use and generates SVG badges for Retina support!

The full list of supported badges:

It's as simple as this:

// Using the facade
Badger::generate('Alt Three', 'Badger', 'green', 'flat-square')

// Dependency injection example
$badger->generate('Alt Three', 'Badger', '#ff69b4', 'social')

Badger also has some built in color names:

We hope you enjoy!

Share Comment on Twitter