PHPackages                             olivier127/sulu-picture-placeholder-generator-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. olivier127/sulu-picture-placeholder-generator-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

olivier127/sulu-picture-placeholder-generator-bundle
====================================================

Bundle for generating picture placeholder for sulu

v1.0.0(2y ago)00MITPHPPHP ^8.0

Since May 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Olivier127/SuluPicturePlaceholderGeneratorBundle)[ Packagist](https://packagist.org/packages/olivier127/sulu-picture-placeholder-generator-bundle)[ Docs](https://github.com/Olivier127/SuluPicturePlaceholderGeneratorBundle)[ RSS](/packages/olivier127-sulu-picture-placeholder-generator-bundle/feed)WikiDiscussions main Synced 1mo ago

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

Sulu Picture Placeholder Generator Bundle
=========================================

[](#sulu-picture-placeholder-generator-bundle)

This bundle provides functionality for generating picture placeholders for Sulu CMS.

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

[](#installation)

You can install this bundle via Composer:

```
composer require olivier127/sulu-picture-placeholder-generator-bundle
```

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

[](#configuration)

After installing the bundle, you can configure it in your Symfony application. Add the following configuration to your `config/packages/olivier127_place_holder_generator.yaml` file to put the defaut values :

```
olivier127_place_holder_generator:
  lorempicsum:
    seed:
    id:
  placehold:
    text:
    text_font:
    background_color:
    text_color:
```

You can not specify seed and id at the same time for lorem picsum. You can only specify the require parameters.

```
olivier127_place_holder_generator:
  placehold:
    background_color: orange
```

see : and :

Twig Extensions
---------------

[](#twig-extensions)

This bundle provides two Twig extensions: `sulu_generate_placeholder` and `sulu_generate_picture`.

### Usage

[](#usage)

#### `sulu_generate_placeholder`

[](#sulu_generate_placeholder)

This Twig function generates a placeholder using the configured placeholder generator. The options override the bundle configuration.

```
{% set placeholder = sulu_generate_placeholder('thumbnail') %}

{% set placeholder = sulu_generate_placeholder('thumbnail', { 'text': 'Sulu CMS', 'text_font': 'lato' }) %}

{% set placeholder = sulu_generate_placeholder('thumbnail', { 'background_color': 'ccc', 'text_color': '000' }) %}

```

The `options` argument uses the same configuration as `placehold`.

#### `sulu_generate_picture`

[](#sulu_generate_picture)

This Twig function generates a picture using the configured picture generator. The options override the bundle configuration.

```
{% set picture = sulu_generate_picture('thumbnail') %}

{% set picture = sulu_generate_picture('thumbnail', { 'seed': '123456' }) %}

{% set picture = sulu_generate_picture('thumbnail', { 'id': 100 }) %}

```

The `options` argument uses the same configuration as `lorempicsum`.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

738d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ca7a9937eb4a7f77b158fcd9f6ac78e987c36bafb50bd7173a5bd11ecb7d5d7?d=identicon)[ofouache](/maintainers/ofouache)

---

Top Contributors

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

---

Tags

imagessulu

### Embed Badge

![Health badge](/badges/olivier127-sulu-picture-placeholder-generator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/olivier127-sulu-picture-placeholder-generator-bundle/health.svg)](https://phpackages.com/packages/olivier127-sulu-picture-placeholder-generator-bundle)
```

###  Alternatives

[sulu/form-bundle

Bundle for creating forms in Sulu.

87287.3k7](/packages/sulu-form-bundle)[sulu/article-bundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system

66409.6k2](/packages/sulu-article-bundle)[sulu/theme-bundle

The Sulu Bundle which provides theming functionality.

23300.4k1](/packages/sulu-theme-bundle)[sulu/automation-bundle

The Sulu Bundle which provides automation functionality

18289.1k8](/packages/sulu-automation-bundle)

PHPackages © 2026

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