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

ActiveLibrary

studiow/placeholder
===================

Placeholder images via placeholder.com

v0.0.1(7y ago)04MITPHPPHP &gt;=7.1

Since Aug 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/studiowbe/placeholder)[ Packagist](https://packagist.org/packages/studiow/placeholder)[ RSS](/packages/studiow-placeholder/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

placeholder
===========

[](#placeholder)

Placeholder images via [placeholder.com](https://placeholder.com/)

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

[](#installation)

The (highly) recommended way to install studiow/placeholder is by using [Composer](https://getcomposer.org/)

```
composer require studiow/placeholder
```

Example usage
-------------

[](#example-usage)

```
$image = new Studiow\Placeholder\Image(300, 250);

echo (string) $image; //will write 'https://via.placeholder.com/300x250
```

Options
-------

[](#options)

We can set different options for our placeholder image. Please note that Image objects are immutable!

The following options are available:

### Dimensions

[](#dimensions)

You can change the width and height

```
$resized = $image->width($new_width)->height($new_height);
```

### File format

[](#file-format)

Sets the file format that will be returned. Can be any of 'gif', 'jpg', 'jpeg' or 'png'

```
$resized = $image->format('jpg');
```

### Colors

[](#colors)

We can change the background and foreground color. You must provide a hex color (000 to fff or 000000 to ffffff)

```
$white_background = $image->background('ffffff');
$black_text = $image->color('000');
```

### Text

[](#text)

By default, the text in the image shows the dimensions (e.g. '300x250'). We can change that, too

```
$withText = $image->text('My Image Text');
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

2834d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b57a4311f92e06e73f6c646344a069d0088747f22e420a583f91bd3e6ab1729?d=identicon)[studiowbe](/maintainers/studiowbe)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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