2017 © Pedro Peláez
 

lib poser

Poser, add badges on your readme..

image

badges/poser

Poser, add badges on your readme..

  • Wednesday, November 15, 2017
  • by liuggio
  • Repository
  • 9 Watchers
  • 54 Stars
  • 7,206 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 28 Forks
  • 2 Open issues
  • 7 Versions
  • 4 % Grown

The README.md

PHP badges poser GitHub actions

This is a php library that creates badges like Badge Poser and I'm a badge and dark, according to Shields specification., (*1)

This library is used by https://poser.pugx.org, (*2)

Latest Stable Version Latest Unstable Version Total Downloads Github actions Build PHP Version Require, (*3)

Dependencies

  • PHP 8.1 or higher
  • GD extension

you can still use the library with lower PHP versions, using the old releases, (*4)

Use as command

1. Create a project

composer create-project badges/poser
ln -s poser/bin/poser /usr/local/bin/poser

2. Launch the command

Create an image, (*5)

poser license MIT blue -p "license.svg"

Flush an image, (*6)

poser license MIT blue

Choose a different style, (*7)

poser license MIT blue -s "for-the-badge"

Usage as library

1. Add to composer dependencies

composer require badges/poser

2. Use in your project as lib

use PUGX\Poser\Render\SvgPlasticRender;
use PUGX\Poser\Poser;

$render = new SvgPlasticRender();
$poser = new Poser([$render]);

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

echo $image->getStyle();

The allowed styles are: plastic, flat, flat-square, and for-the-badge., (*8)

Encoding

Dashes --- Dash, (*9)

Underscores ___ Underscore, (*10)

_ or Space → Space, (*11)

More

For more info please see the behat features and the examples in the php-spec folder, (*12)

Why a composer badge?

Not only because all the other languages already have it, but having the latest stable release in the readme could save time., (*13)

Contributing

Active contribution and patches are very welcome.
Please refer to CONTRIBUTING, (*14)

License

License, (*15)

The Versions

15/11 2017

dev-master

9999999-dev https://github.com/PUGX

Poser, add badges on your readme..

  Sources   Download

MIT

The Requires

 

The Development Requires

by Giulio De Donato

composer packagist pin badge

27/03 2016

v1.2.2

1.2.2.0 https://github.com/PUGX

Poser, add badges on your readme..

  Sources   Download

MIT

The Requires

 

The Development Requires

by Giulio De Donato

composer packagist pin badge

16/03 2016

1.2.1

1.2.1.0 https://github.com/PUGX

Poser, add badges on your readme..

  Sources   Download

MIT

The Requires

 

The Development Requires

by Giulio De Donato

composer packagist pin badge

03/02 2016

v1.2.0

1.2.0.0 https://github.com/PUGX

Poser, add badges on your readme..

  Sources   Download

MIT

The Requires

 

The Development Requires

by Giulio De Donato

composer packagist pin badge

20/04 2015

dev-new_flat_format

dev-new_flat_format https://github.com/PUGX

Poser, add badges on your readme..

  Sources   Download

MIT

The Requires

 

The Development Requires

by Giulio De Donato

composer packagist pin badge

20/04 2015

v1.1

1.1.0.0 https://github.com/PUGX

Poser, add badges on your readme..

  Sources   Download

MIT

The Requires

 

The Development Requires

by Giulio De Donato

composer packagist pin badge

24/08 2014

v1.0

1.0.0.0 https://github.com/PUGX

Poser, add badges on your readme..

  Sources   Download

MIT

The Requires

 

The Development Requires

by Giulio De Donato

composer packagist pin badge