https://github.com/giterlizzi/perl-mojolicious-plugin-badge
Badge plugin for Mojolicious
https://github.com/giterlizzi/perl-mojolicious-plugin-badge
badge mojolicious perl shields shieldsio
Last synced: 4 months ago
JSON representation
Badge plugin for Mojolicious
- Host: GitHub
- URL: https://github.com/giterlizzi/perl-mojolicious-plugin-badge
- Owner: giterlizzi
- License: artistic-2.0
- Created: 2024-09-19T09:58:09.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-05T13:34:00.000Z (9 months ago)
- Last Synced: 2025-03-10T02:10:44.252Z (4 months ago)
- Topics: badge, mojolicious, perl, shields, shieldsio
- Language: Perl
- Homepage: https://metacpan.org/release/Mojolicious-Plugin-Badge
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/giterlizzi/perl-Mojolicious-Plugin-Badge/releases) [](https://github.com/giterlizzi/perl-Mojolicious-Plugin-Badge) [](https://github.com/giterlizzi/perl-Mojolicious-Plugin-Badge) [](https://github.com/giterlizzi/perl-Mojolicious-Plugin-Badge) [](https://github.com/giterlizzi/perl-Mojolicious-Plugin-Badge/issues) [](https://coveralls.io/github/giterlizzi/perl-Mojolicious-Plugin-Badge)
# Mojolicious::Plugin::Badge - Badge plugin for Mojolicious
Mojolicious::Plugin::Badge is a Mojolicious plugin that generate "Shields.io"
like badge from `badge` helper or via API URL (e.g. `/badge/Hello-Mojo!-orange`).## Usage
Create your badge ...
... in `Mojolicious` or `Mojolicious::Lite` application:
```.pl
# Mojolicious
$self->plugin('Badge');# Mojolicious::Lite
plugin 'Badge';get '/my-cool-badge' => sub ($c) {
my $badge = $c->app->badge(
label => 'Hello',
message => 'Mojo!',
color => 'orange'
logo => 'https://docs.mojolicious.org/mojo/logo.png'
badge_format => 'png',
);$c->render(data => $badge, format => 'png');
};
```... via "Shields.io"-like Badge API:
```
GET /badge/Hello-Mojo!-orange.png
```... from CLI using "badge" command:
```console
./myapp.pl badge --label "Hello" --message "Mojo!" --color "orange" --format png --file my-cool-badge.png
```Output:

## Styles
* 
* 
* 
* ## Colors








## Installation
To install this module type the following:
perl Makefile.PL
make
make test
make installUsing App::cpanminus:
cpanm Mojolicious::Plugin::Badge
## Documentation
- `perldoc Mojolicious::Plugin::Badge`
- https://metacpan.org/release/Mojolicious-Plugin-Badge## Copyright
Copyright (C) 2024 by Giuseppe Di Terlizzi