PHPackages                             kreyu/placeholder-image - 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. kreyu/placeholder-image

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

kreyu/placeholder-image
=======================

Generate links for placeholder images using various providers

v1.0.1(7y ago)025MITPHPPHP ^7.1

Since Apr 23Pushed 7y agoCompare

[ Source](https://github.com/Kreyu/placeholder-image)[ Packagist](https://packagist.org/packages/kreyu/placeholder-image)[ Docs](https://github.com/kreyu/placeholder-image)[ RSS](/packages/kreyu-placeholder-image/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

Placeholder Image
=================

[](#placeholder-image)

[![Latest Stable Version](https://camo.githubusercontent.com/ffcf3b9035241479b2ca5f64e197655c9352ca4da06e1bb94c2884fdf8580120/68747470733a2f2f706f7365722e707567782e6f72672f6b726579752f706c616365686f6c6465722d696d6167652f76657273696f6e)](https://packagist.org/packages/kreyu/placeholder-image)[![Build Status](https://camo.githubusercontent.com/4c345fab9b06ba43082adfb73a975c941480abfa4f406e44cb66190d730894f1/68747470733a2f2f7472617669732d63692e6f72672f4b726579752f706c616365686f6c6465722d696d6167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Kreyu/placeholder-image)

This package helps with usage of various placeholder image providers.
Zero dependencies, simple links.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require kreyu/placeholder-image
```

Testing
-------

[](#testing)

```
composer test
```

Usage
-----

[](#usage)

To generate the url placeholder image:

```
PlaceholderImage::with($providerAlias)->generate($width, $height, array $options, $ssl = true);
```

Example usage:

```
PlaceholderImage::with('dummy_image')->generate(600, 400, [
    'text' => 'Beep Boop',
    'format' => 'png',
    'background' => 'FF9900',
    'foreground' => 'FFFFFF',
]);
```

Will give us the following url:

```
https://dummyimage.com/600x400/FF9900/FFFFFF.png&text=Beep+boop

```

Fourth argument allows to disable SSL support.

Supported providers
-------------------

[](#supported-providers)

- `fill_murray` - [fillmurray.com](https://www.fillmurray.com)
- `dummy_image` - [dummyimage.com](https://dummyimage.com)
- `placeholder` - [placeholder.com](https://placeholder.com)
- `place_img` - [placeimg.com](https://placeimg.com)

Using the invalid provider alias throws the `InvalidProviderException`

```
Fatal error: Uncaught Kreyu\PlaceholderImage\Exception\InvalidProviderException:
Requested provider invalid-prov does not exist.

```

License
-------

[](#license)

The MIT License (MIT). Please see [license file](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~1 days

Total

2

Last Release

2575d ago

### Community

Maintainers

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

---

Top Contributors

[![Kreyu](https://avatars.githubusercontent.com/u/24738141?v=4)](https://github.com/Kreyu "Kreyu (6 commits)")

---

Tags

placeholder-imagekreyu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kreyu-placeholder-image/health.svg)

```
[![Health](https://phpackages.com/badges/kreyu-placeholder-image/health.svg)](https://phpackages.com/packages/kreyu-placeholder-image)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

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