PHPackages                             olyckne/pug - 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. [Image &amp; Media](/categories/media)
4. /
5. olyckne/pug

ActiveLibrary[Image &amp; Media](/categories/media)

olyckne/pug
===========

Get images of Pugs

v2.0(9y ago)099MITPHPPHP &gt;=5.6.0

Since May 2Pushed 8y agoCompare

[ Source](https://github.com/olyckne/Pug)[ Packagist](https://packagist.org/packages/olyckne/pug)[ RSS](/packages/olyckne-pug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/b1ff4fd6dc3d4fabfc1b7c7a20dcdde22f2069fd361ad2a198c22fc657d0ed7d/68747470733a2f2f7472617669732d63692e6f72672f6f6c79636b6e652f5075672e737667)](https://travis-ci.org/olyckne/Pug)[![SensioLabsInsight](https://camo.githubusercontent.com/d45e0e83d7e011c7f893af5a95296499ec6e618746d61763addbd0f3c1a31f45/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31353263386435362d363931302d343137662d623739342d3032376666643038303365382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/152c8d56-6910-417f-b794-027ffd0803e8)[![Code Coverage](https://camo.githubusercontent.com/56a8f5757197a29bc28b1fbfc2edd55eec5d1cc9a2b012c5b43a6cc4bd9cfe82/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f6c79636b6e652f5075672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/olyckne/Pug/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6cfd98e706cea8d72755e5d465c1713b9830e16e6aee5c43de1640833a1746ce/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f6c79636b6e652f5075672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/olyckne/Pug/?branch=master)

I LOVE PUGS!
============

[](#i-love-pugs)

A simple PHP wrapper around

### Usage:

[](#usage)

```
composer require olyckne/pug

```

#### Standard php:

[](#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:

[](#laravel)

```
// app/config/app.php

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

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

Then you can use the nice facade

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

#### Lumen:

[](#lumen)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~163 days

Total

4

Last Release

3543d ago

Major Versions

v1.2 → v2.02016-09-04

PHP version history (3 changes)v1.0PHP &gt;=5.4.0

v1.2PHP &gt;=5.5.0

v2.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2aa8d54dab2ffa3e9493d71de9c89e6e41880924cd3ce33d8ed65791764459b?d=identicon)[olyckne](/maintainers/olyckne)

---

Top Contributors

[![olyckne](https://avatars.githubusercontent.com/u/1079027?v=4)](https://github.com/olyckne "olyckne (15 commits)")

### Embed Badge

![Health badge](/badges/olyckne-pug/health.svg)

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

###  Alternatives

[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)[daun/statamic-placeholders

Generate low-quality image placeholders for lazyloading Statamic assets

106.6k](/packages/daun-statamic-placeholders)[abordage/laravel-og-images

Generate Open Graph images (og:image, twitter:image, vk:image) for each site pages

122.8k](/packages/abordage-laravel-og-images)[daun/statamic-mux

Seamless video encoding and streaming using Mux on Statamic sites

132.3k](/packages/daun-statamic-mux)

PHPackages © 2026

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