2017 © Pedro Peláez
 

library badge-poser

Laravel and Lumen Badge Generator

image

vluzrmos/badge-poser

Laravel and Lumen Badge Generator

  • Wednesday, February 7, 2018
  • by vluzrmos
  • Repository
  • 1 Watchers
  • 5 Stars
  • 220 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel and Lumen Badge Generator

Join the chat at https://gitter.im/vluzrmos/laravel-badge-poser, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

That package is a easy wrapper to Badges/Poser., (*3)

Installing

composer require vluzrmos/laravel-badge-poser

Laravel

configure the aliases and providers on Laravel config/app:, (*4)

The provider:, (*5)

  'Vluzrmos\BadgePoser\BadgePoserSeviceProvider',

and the alias:, (*6)

  'Poser' => 'Vluzrmos\BadgePoser\PoserFacade',

Lumen

edit the bootstrap/app.php:, (*7)

$app->register('Vluzrmos\BadgePoser\BadgePoserSeviceProvider');

//register the facade, if you need
if(!class_exists('Poser')){
  class_alias('Vluzrmos\BadgePoser\PoserFacade', 'Poser');
}

Usage

Using IoC Container, (*8)

class YourController extends Controller
{
  public function controllerMethod(\Vluzrmos\BadgePoser\Contracts\Poser $poser)
  {
    return $poser->generate('slogan', 'status', 'FFFFFF', 'flat');
  }
} 

Facade

$response = Poser::generate('licence', 'MIT', 'FFFFF', 'plastic');

API

$response = Poser::generate($message, $status, $color, $format);
//where $format is 'flat' or 'plastic'


$response = Poser::generateFromURI('license-MIT-428F7E.plastic');

Example

Lumen Slackin., (*9)

License

DBAD., (*10)

The Versions

07/02 2018

dev-master

9999999-dev

Laravel and Lumen Badge Generator

  Sources   Download

dbad

The Requires

 

laravel lumen badge poser

24/06 2015

v1.0.1

1.0.1.0

Laravel and Lumen Badge Generator

  Sources   Download

dbad

The Requires

 

laravel lumen badge poser

19/05 2015

v1.0.0

1.0.0.0

Laravel Badge Generator

  Sources   Download

dbad

The Requires

 

laravel lumen badge poser