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

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

rufhausen/placeholder
=====================

Laravel Package for using a placeholder image service to add images to your application.

118PHP

Since Dec 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rufhausen/placeholder)[ Packagist](https://packagist.org/packages/rufhausen/placeholder)[ RSS](/packages/rufhausen-placeholder/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Placeholder
===========

[](#placeholder)

Laravel 5.3 Package for using a placeholder image service to add images to your application.

\##Services supported

Currently supports [unsplash.it](https://unsplash.it/) and [placeimg.com](https://placeimg.com/).

\##Getting Started

Currently, the package consists of two facades: Placeholder and Placeimage. Placeholder is strictly for outputing placeholder image tags, while Placeimage will attempt to use an existing image public path, but revert to a placeholder image if the images does not exist.

\##Code Examples

\####Using the Placeholder tag

```
//Usage:

\Placeholder::make($width, $height = null, $tagAttributes = null, $imageOptions = null);

//Basic Example:

\Placeholder::make(200);
//outputs:  using unsplash.it

//Full Example:

\Placeholder::make(200, 200, ['class' => 'img-responsive', 'id' => 'placeholder'], ['color' => 'grayscale']);
//outputs:
 using unsplash.it
```

\####Using the Placeimage tag

```
//Create an image tag that will revert to placeholder if the image does not exist:

//Usage:

\Placeimage::make($imagePath, $width, $height = null, $tagAttributes = null, $imageOptions = null);

//Basic Example:

\Placeimage::make('/img/test.jpg', 200);
//outputs:  using unsplash.it
\Placeimage::make('/img/foo.jpg', 200, null, ['width' => '200', 'class' => 'img-responsive'], ['color' => 'grayscale']); //image does not exist

//outputs:  using unsplash.it
```

\##Installation Add the package to composer.json

```
php composer.phar require intervention/image

```

Add the package provider to providers array in `config/app.php`:

```
Rufhausen\Placeholder\PlaceholderServiceProvider::class,
```

Add the facades to the facades array in `config/app.php`:

```
'Placeholder'  => Rufhausen\Placeholder\Placeholder::class,
'Placeimage'   => Rufhausen\Placeholder\PlaceImage::class,
```

Publish the config:

```
php artisan vendor:publish --provider="Rufhausen\Placeholder\PlaceholderServiceProvider"

```

License
-------

[](#license)

Placeholder is licensed under the [MIT License](http://opensource.org/licenses/MIT).

Copyright 2016 Gary Taylor

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43862?v=4)[Gary Taylor](/maintainers/rufhausen)[@rufhausen](https://github.com/rufhausen)

---

Top Contributors

[![rufhausen](https://avatars.githubusercontent.com/u/43862?v=4)](https://github.com/rufhausen "rufhausen (2 commits)")

### Embed Badge

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

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

###  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)
