PHPackages                             app-zap/phpframework-placeimg - 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. [Framework](/categories/framework)
4. /
5. app-zap/phpframework-placeimg

ActiveLibrary[Framework](/categories/framework)

app-zap/phpframework-placeimg
=============================

0.0.1(11y ago)030[1 issues](https://github.com/app-zap/PHPFrameworkPlaceImg/issues)PHP

Since Sep 17Pushed 9y ago2 watchersCompare

[ Source](https://github.com/app-zap/PHPFrameworkPlaceImg)[ Packagist](https://packagist.org/packages/app-zap/phpframework-placeimg)[ RSS](/packages/app-zap-phpframework-placeimg/feed)WikiDiscussions develop Synced 6d ago

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

PlaceImg - Libary for image placeholders
========================================

[](#placeimg---libary-for-image-placeholders)

This package is intended to be used with the [PHPFramework](https://github.com/app-zap/PHPFramework).

What it does
------------

[](#what-it-does)

It provides a function that returns HTML placeholder image tags and is built to be used as [twig](http://twig.sensiolabs.org/) function.

How to use
----------

[](#how-to-use)

Use `{{ placeimg(300, 200) }}` in your twig templates and will get a ready-to-use img tag (e.g. ``) with a dummy image.

Optionally you can provide additional attributes as a third parameter: `{{ placeimg(300, 200, 'class="mainimage"')}}`.

***Example:***

[![](https://camo.githubusercontent.com/ba98974f7630b85796d4eea40edd9dfeaf1e6d50cd80232bc9515500d32fd310/687474703a2f2f6c6f72656d706978656c2e636f6d2f3330302f323030)](https://camo.githubusercontent.com/ba98974f7630b85796d4eea40edd9dfeaf1e6d50cd80232bc9515500d32fd310/687474703a2f2f6c6f72656d706978656c2e636f6d2f3330302f323030)

You just want an image url? Try `{{ placeimg_url(300, 200) }}`!

Configuration
-------------

[](#configuration)

Via `settings.ini` you can choose between different image placeholder providers.

```
[application]
placeimg_provider = "placebear"

```

The following providers are supported at the moment:

- `baconmockup` - [baconmockup.com](http://baconmockup.com/)
- `dummyimage` - [dummyimage.com](http://dummyimage.com/)
- `fakeimg` - [fakeimg.pl](http://fakeimg.pl/)
- `fillmurray` - [fillmurray.com](http://fillmurray.com/)
- `lorempixel` - [lorempixel.com](http://lorempixel.com/) **(default)**
- `nicenicejpg` - [nicenicejpg.com](http://nicenicejpg.com/)
- `p-hold` - [p-hold.com](http://p-hold.com/)
- `place-hoff` - [place-hoff.com](http://place-hoff.com/)
- `placebear` - [placebear.com](http://placebear.com/)
- `placebeard` - [placebeard.com](http://placebeard.com/)
- `placecage` - [placecage.com](http://placecage.com/)
- `placehold` - [placehold.it](http://placehold.it/)
- `placeimg` - [placeimg.com](https://placeimg.com/)
- `placesheen` - [placesheen.com](https://placesheen.com/)
- `stevensegallery` - [stevensegallery.com](https://stevensegallery.com/)
- `unsplash` - [unsplash.it](https://unsplash.it/)

Disclaimer
----------

[](#disclaimer)

Please notice that I don't run these providers and there's no guarantee that they will be available for ever.

If you notice that one of these providers is offline very frequently -or even for ever- please open an [issue](https://github.com/app-zap/PHPFrameworkPlaceImg/issues).

If you know a provider that's missing please open an [issue](https://github.com/app-zap/PHPFrameworkPlaceImg/issues).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

4259d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/886face3e57e668db2bf95d62325f423baf7e9d8949a9e4c84d3a0e6c3891920?d=identicon)[smichaelsen](/maintainers/smichaelsen)

---

Top Contributors

[![smichaelsen](https://avatars.githubusercontent.com/u/912435?v=4)](https://github.com/smichaelsen "smichaelsen (7 commits)")

### Embed Badge

![Health badge](/badges/app-zap-phpframework-placeimg/health.svg)

```
[![Health](https://phpackages.com/badges/app-zap-phpframework-placeimg/health.svg)](https://phpackages.com/packages/app-zap-phpframework-placeimg)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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