PHPackages                             adrian7/badges-poser - 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. adrian7/badges-poser

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

adrian7/badges-poser
====================

Poser, add badges on your readme..

v1.2.3(8y ago)0371MITPHPPHP &gt;=5.3

Since Aug 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/adrian7/poser)[ Packagist](https://packagist.org/packages/adrian7/badges-poser)[ Docs](https://github.com/PUGX)[ RSS](/packages/adrian7-badges-poser/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (7)Used By (1)

PHP badges poser
================

[](#php-badges-poser)

This is a php library that creates badges like [![Badge Poser](https://camo.githubusercontent.com/405742e27baa61741c7ef073276797dc025630412c66feff5e721f0156b2d4cb/68747470733a2f2f63646e2e7261776769742e636f6d2f6261646765732f706f7365722f6d61737465722f62616467652d706f7365722e737667)](https://camo.githubusercontent.com/405742e27baa61741c7ef073276797dc025630412c66feff5e721f0156b2d4cb/68747470733a2f2f63646e2e7261776769742e636f6d2f6261646765732f706f7365722f6d61737465722f62616467652d706f7365722e737667) and [![I'm a badge](https://camo.githubusercontent.com/045c7d27de78a91f7cfba8cf379b3912cade5a8ac13782ce05e3e74941be91d3/68747470733a2f2f63646e2e7261776769742e636f6d2f6261646765732f706f7365722f6d61737465722f695f6d2d62616467652e737667)](https://camo.githubusercontent.com/045c7d27de78a91f7cfba8cf379b3912cade5a8ac13782ce05e3e74941be91d3/68747470733a2f2f63646e2e7261776769742e636f6d2f6261646765732f706f7365722f6d61737465722f695f6d2d62616467652e737667) and [![dark](https://camo.githubusercontent.com/5d11c97e2f7b52a889a4111249bc3effdd48e29916dd574bfcbcd3cdec11aa20/68747470733a2f2f63646e2e7261776769742e636f6d2f6261646765732f706f7365722f6d61737465722f746f6461792d6461726b2e737667)](https://camo.githubusercontent.com/5d11c97e2f7b52a889a4111249bc3effdd48e29916dd574bfcbcd3cdec11aa20/68747470733a2f2f63646e2e7261776769742e636f6d2f6261646765732f706f7365722f6d61737465722f746f6461792d6461726b2e737667), according to [Shields specification](https://github.com/badges/shields#specification).

This library is used by

[![Latest Stable Version](https://camo.githubusercontent.com/d84e2d66d1ec0bc099b362429d74a976ff11151fe4acedf3e78e3df1db41fb9d/68747470733a2f2f706f7365722e707567782e6f72672f6261646765732f706f7365722f76657273696f6e2e737667)](https://packagist.org/packages/badges/poser) [![Latest Unstable Version](https://camo.githubusercontent.com/a209786136f8565ea1e2dcab7165cd82d85c18a52eb888e4a3a543fc48f1dbc1/68747470733a2f2f706f7365722e707567782e6f72672f6261646765732f706f7365722f762f756e737461626c652e737667)](//packagist.org/packages/badges/poser) [![Total Downloads](https://camo.githubusercontent.com/7e9c0a306c8320a2eaa79d8557858cac409583d199003ae2ec581864d4d25ced/68747470733a2f2f706f7365722e707567782e6f72672f6261646765732f706f7365722f646f776e6c6f6164732e737667)](https://packagist.org/packages/badges/poser)[![Build Status](https://camo.githubusercontent.com/85ccfb7af4646a1835c1321015725d1c0163ec67976d4b8e3e7d578bd01db281/68747470733a2f2f7472617669732d63692e6f72672f6261646765732f706f7365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/badges/poser)

Dependencies
------------

[](#dependencies)

- PHP 5.3 or higher
- GD extension

Use as command
--------------

[](#use-as-command)

#### 1. Create a project

[](#1-create-a-project)

```
$ composer create-project badges/poser ~1.2
$ ln -s poser/bin/poser /usr/local/bin/poser
```

#### 2. Launch the command

[](#2-launch-the-command)

Create an image

`$ poser license MIT blue -p "license.svg"`

Flush an image

`$ poser license MIT blue`

Usage as library
----------------

[](#usage-as-library)

#### 1. Add to composer

[](#1-add-to-composer)

`composer require badges/poser ~1.2`

#### 2. Use in your project as lib

[](#2-use-in-your-project-as-lib)

```
    use PUGX\Poser\Render\SvgRender;
    use PUGX\Poser\Poser;

    $render = new SvgRender();
    $poser = new Poser(array($render));

    echo $poser->generate('license', 'MIT', '428F7E', 'plastic');
    // or
    echo $poser->generateFromURI('license-MIT-428F7E.plastic');
    // or
    $image = $poser->generate('license', 'MIT', '428F7E', 'plastic');

    echo $image->getFormat();
```

Encoding
--------

[](#encoding)

Dashes `--` → `-` Dash

Underscores `__` → `_` Underscore

`_` or Space → Space

More
----

[](#more)

For *more info* please see the [behat features](./features/)and the examples in the [php-spec folder](./spec/)

Contribution
------------

[](#contribution)

Active contribution and patches are very welcome. See the [github issues](https://github.com/PUGX/poser/issues?state=open). To keep things in shape we have quite a bunch of examples and features. If you're submitting pull requests please make sure that they are still passing and if you add functionality please take a look at the coverage as well it should be pretty high :)

- First fork or clone the repository

```
git clone git://github.com/badges/poser.git
cd poser

```

- Install vendors:

```
composer install
```

- Run specs:

```
./bin/phpspec run --format=pretty
```

- Then run behat:

```
./bin/behat
```

Using Docker
------------

[](#using-docker)

We provide a `docker-compose.yml.dist` file to allow you to run tests in a Docker container.

```
cp docker-compose.yml.dist docker-compose.yml
docker-compose up -d
docker-compose exec fpm composer update
docker-compose exec fpm bin/phpspec run --format=pretty
docker-compose exec fpm bin/behat
```

The provided Docker compose file is for a PHP 7.1 environment, but you can modifiy it to use PHP 5.6.

See

License
-------

[](#license)

[![License](https://camo.githubusercontent.com/835094a17e408cac6b41a407f30ed2932d5ba86e116bf431593f2bf9e479af78/68747470733a2f2f706f7365722e707567782e6f72672f6261646765732f706f7365722f6c6963656e73652e737667)](./LICENSE)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 52.1% 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 ~263 days

Recently: every ~269 days

Total

6

Last Release

3009d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/225180?v=4)[Adrian Şilimon-Morariu](/maintainers/adrian7)[@adrian7](https://github.com/adrian7)

---

Top Contributors

[![liuggio](https://avatars.githubusercontent.com/u/530406?v=4)](https://github.com/liuggio "liuggio (25 commits)")[![jmleroux](https://avatars.githubusercontent.com/u/1516770?v=4)](https://github.com/jmleroux "jmleroux (16 commits)")[![fefas](https://avatars.githubusercontent.com/u/6557756?v=4)](https://github.com/fefas "fefas (2 commits)")[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (1 commits)")[![adrian7](https://avatars.githubusercontent.com/u/225180?v=4)](https://github.com/adrian7 "adrian7 (1 commits)")[![PeterDaveHello](https://avatars.githubusercontent.com/u/3691490?v=4)](https://github.com/PeterDaveHello "PeterDaveHello (1 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (1 commits)")[![Haehnchen](https://avatars.githubusercontent.com/u/1011712?v=4)](https://github.com/Haehnchen "Haehnchen (1 commits)")

---

Tags

composerbadgepinpackagist

###  Code Quality

TestsBehat

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/adrian7-badges-poser/health.svg)

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

###  Alternatives

[badges/poser

Poser, add badges on your readme..

14476.9k11](/packages/badges-poser)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5155.1k17](/packages/phel-lang-phel-lang)

PHPackages © 2026

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