2017 © Pedro Peláez
 

library pug

Get images of Pugs

image

olyckne/pug

Get images of Pugs

  • Tuesday, September 5, 2017
  • by olyckne
  • Repository
  • 0 Watchers
  • 0 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Build Status SensioLabsInsight Code Coverage Scrutinizer Code Quality, (*1)

I LOVE PUGS!

A simple PHP wrapper around http://pugme.herokuapp.com, (*2)

Usage:

composer require olyckne/pug

Standard php:

$pug = new Olyckne\Pug\Pug;
$pug->random(); // returns link to an image
$pug->bomb($count=5) // returns an array of links to images

Laravel:

// app/config/app.php

'providers' => [
    '...',
    'Olyckne\Pug\PugServiceProvider'
];

'facades' => [
    '…',
    'Olyckne\Pug\PugFacade'
];

Then you can use the nice facade, (*3)

Route::get('/', function () {
    $pug = Pug::random();
    return View::make('index', compact('pug'));
});

Lumen:

// boostrap/app.php
// uncomment $app->withFacades();
// register the service provider and facade
$app->register('Olyckne\Pug\PugServiceProvider');
class_alias('Olyckne\Pug\PugFacade', 'Pug');

The Versions

05/09 2017

dev-master

9999999-dev

Get images of Pugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mattias Lyckne

04/09 2016

v2.0

2.0.0.0

Get images of Pugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mattias Lyckne

22/08 2015

v1.2

1.2.0.0

Get images of Pugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mattias Lyckne

02/05 2015

1.1

1.1.0.0

Get images of Pugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mattias Lyckne

02/05 2015

v1.0

1.0.0.0

Get images of Pugs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mattias Lyckne