Home

Awesome

Badge4J

Maven Central Build Status Quality Gate Status Coverage Hits

Badge4J is a Java implementation of the badge-maker JavaScript library and is inspired by shields.io. This library also supports simple-icons.

Usage

String svg = Badge.builder().label("hello").message("world").build();

Available builder options

Badge.builder()
     .style(Style) /* Flat(default), FlatSquare, ForTheBadge, Plastic, Social */
     .label(String)
     .message(String)
     .color(String)
     .labelColor(String)
     .logo(String) /* simple-icons slug or data:image/svg+xml;base64,.. */
     .logoWidth(int)
     .links(String[])
     .build();

Styles

Colors

Maven Central

<dependency>
    <groupId>org.silentsoft</groupId>
    <artifactId>badge4j</artifactId>
    <version>1.11.0</version>
</dependency>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please note we have a CODE_OF_CONDUCT, please follow it in all your interactions with the project.

License

Please refer to LICENSE.