2017 © Pedro Peláez
 

lib badges-poser

Poser, add badges on your readme..

image

adrian7/badges-poser

Poser, add badges on your readme..

  • Wednesday, April 4, 2018
  • by adrian7
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 28 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PHP badges poser

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 Build Status, (*3)

Dependencies

  • PHP 5.3 or higher
  • GD extension

Use as command

1. Create a project

``` bash $ composer create-project badges/poser ~1.2 $ ln -s poser/bin/poser /usr/local/bin/poser, (*4)


#### 2. Launch the command Create an image `$ poser license MIT blue -p "license.svg"` Flush an image `$ poser license MIT blue` ## Usage as library #### 1. Add to composer `composer require badges/poser ~1.2` #### 2. Use in your project as lib ``` php 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

Dashes --- Dash, (*5)

Underscores ___ Underscore, (*6)

_ or Space → Space, (*7)

More

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

Contribution

Active contribution and patches are very welcome. See the github issues. 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 :), (*9)

  • First fork or clone the repository
git clone git://github.com/badges/poser.git
cd poser
  • Install vendors:

``` bash composer install, (*10)


- Run specs: ``` bash ./bin/phpspec run --format=pretty
  • Then run behat:

``` bash ./bin/behat, (*11)


## Using Docker We provide a `docker-compose.yml.dist` file to allow you to run tests in a Docker container. ```bash 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., (*12)

See https://store.docker.com/community/images/jmleroux/fpm/tags, (*13)

License

License, (*14)

The Versions

04/04 2018

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

04/04 2018

v1.2.3

1.2.3.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

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

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