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 2w ago

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 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

2623d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24738141?v=4)[Sebastian Wróblewski](/maintainers/Kreyu)[@Kreyu](https://github.com/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

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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