PHPackages                             pixelopen/sulu-gallerybundle - 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. pixelopen/sulu-gallerybundle

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

pixelopen/sulu-gallerybundle
============================

Manage gallery for Sulu

2.6.1(1y ago)31071MITPHPPHP ^8.1

Since Jun 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Pixel-Open/sulu-gallerybundle)[ Packagist](https://packagist.org/packages/pixelopen/sulu-gallerybundle)[ Docs](https://github.com/Pixel-Open/sulu-gallerybundle)[ RSS](/packages/pixelopen-sulu-gallerybundle/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (4)Used By (0)

Gallery Bundle
==============

[](#gallery-bundle)

[![GitHub release (with filter)](https://camo.githubusercontent.com/28cd1072a56ae1f56070c8969d83f9bd4e2a9504d59f18b5561d497ffe22c052/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d4f70656e2f73756c752d67616c6c65727962756e646c653f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/28cd1072a56ae1f56070c8969d83f9bd4e2a9504d59f18b5561d497ffe22c052/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d4f70656e2f73756c752d67616c6c65727962756e646c653f7374796c653d666f722d7468652d6261646765)[![Dependency](https://camo.githubusercontent.com/a7164181066052cd108eee770b71f67bfd7cbe74cf87af56067534814e843f34/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73756c752d322e352d6363613030302e7376673f7374796c653d666f722d7468652d6261646765)](https://sulu.io/)

Presentation
------------

[](#presentation)

A bundle for managing image galleries. The galleries are pages the allows you to display pictures (of a place of interest for instance).

Features
--------

[](#features)

- Default image via settings
- Translation
- Search
- Preview of the page in the edit form

Requirement
-----------

[](#requirement)

- PHP &gt;= 8.1
- Symfony &gt;= 5.4
- Composer

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

[](#installation)

### Install the bundle

[](#install-the-bundle)

Execute the following [composer](https://getcomposer.org/) command to add the bundle to the dependencies of your project:

```
composer require pixelopen/sulu-gallerybundle
```

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
return [
    /* ... */
    Pixel\GalleryBundle\GalleryBundle::class => ['all' => true],
];
```

### Update schema

[](#update-schema)

```
bin/console do:sch:up --force
```

Bundle Config
-------------

[](#bundle-config)

Define the Admin Api Route in `routes_admin.yaml`

```
gallery.albums_api:
  type: rest
  prefix: /admin/api
  resource: pixel_gallery.albums_route_controller
  name_prefix: gallery.

gallery.settings_api:
  type: rest
  prefix: /admin/api
  resource: pixel_gallery.settings_route_controller
  name_prefix: gallery.
```

Use
---

[](#use)

### Add/Edit a gallery

[](#addedit-a-gallery)

Go to the "Gallery" section in the administration interface. Then, click on "Add". Fill the fields that needed for your use.

Here is the list of the fields:

- Name (mandatory)
- URL (mandatory and filled automatically according to the name)
- Cover
- Images
- Description
- Location

Once you finished, click on "Save".

Your gallery is not visible on website yet. In order to do that, click on "Activate?". It should be now visible for visitors.

To edit a gallery, simply click on the pencil at the left of the gallery you wish to edit.

Remove/Restore a gallery
------------------------

[](#removerestore-a-gallery)

There are two ways to remove a gallery:

- Check every gallery you want to remove and then click on "Delete"
- Go to the detail of a gallrey (see the above section) and click on "Delete".

In both cases, the gallery will be put in the trash.

To access the trash, go to the "Settings" and click on "Trash". To restore a gallery, click on the clock at the left. Confirm the restore. You will be redirected to the detail of the gallery you restored.

To remove permanently a gallery, check all the galleries you want to remove and click on "Delete".

Settings
--------

[](#settings)

This bundle comes with settings. There is only one setting, it's the configuration of a default image.

To use the settings, you need to call the **gallery\_settings** twig function in the template you need to. This function don't take any parameters

Example of use:

```
{% set gallerySettings = gallery_settings() %}
{% if album.cover is not empty %}
    {% set cover = sulu_resolve_media(album.cover.id, 'en' %}

{% else %}
    {% set default = sulu_resolve_media(gallerySettings.defaultImage.id, 'en' %}

{% endif %}
```

Contributing
------------

[](#contributing)

You can contribute to this bundle. The only thing you must do is respect the coding standard we implements. You can find them in the `ecs.php` file.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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 ~153 days

Total

2

Last Release

547d ago

PHP version history (2 changes)2.6.0PHP ^8.0

2.6.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2b87043ea111a9f5d76ffa990f48eea6e80576483c7bf33f0dcdd5a899c15c8?d=identicon)[pixeldev](/maintainers/pixeldev)

---

Top Contributors

[![matthieu2607](https://avatars.githubusercontent.com/u/14790414?v=4)](https://github.com/matthieu2607 "matthieu2607 (3 commits)")

---

Tags

sulu-bundlegallerysulu

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pixelopen-sulu-gallerybundle/health.svg)

```
[![Health](https://phpackages.com/badges/pixelopen-sulu-gallerybundle/health.svg)](https://phpackages.com/packages/pixelopen-sulu-gallerybundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[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)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

55133.7k2](/packages/sulu-headless-bundle)[robole/sulu-ai-translator-bundle

Translate any type of content using DeepL

181.3k](/packages/robole-sulu-ai-translator-bundle)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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