PHPackages                             nzta/gallery - 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. nzta/gallery

ActiveSilverstripe-vendormodule[Image &amp; Media](/categories/media)

nzta/gallery
============

A module for creating a gallery of images with captions

2.1.0(1y ago)02.8k[1 issues](https://github.com/NZTA/gallery/issues)BSD-3-ClausePHPCI passing

Since Oct 18Pushed 1y ago2 watchersCompare

[ Source](https://github.com/NZTA/gallery)[ Packagist](https://packagist.org/packages/nzta/gallery)[ Docs](https://github.com/NZTA/gallery)[ RSS](/packages/nzta-gallery/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

Gallery
=======

[](#gallery)

Provides the ability add a Gallery to any number of page types to provide a gallery of images with captions

Requirements
------------

[](#requirements)

SilverStripe 4.x or 5.x

Features
--------

[](#features)

- Able to create a set of GalleryItems that each consist of an image and a caption
- Define which PageTypes these GalleryItems should be added to through extensions configurations
- When a galleryitem is clicked on, a lightbox popup shows with carousel functionality

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

[](#installation)

```
composer require nzta/gallery

```

### Installing assets

[](#installing-assets)

You will need to require in the `Requirements::javascript('nzta/gallery: js/gallery.js')` in order to display the gallery out of the box and have the lightbox functionality.

There is also a `Requirements::css('nzta/gallery: css/main.css)` file that can be used to display basic styles for the `CarouselModal`.

### Setting up templates

[](#setting-up-templates)

Once you have the assets being pulled in, you will need to add the gallery to the template, e.g. ``

You will also need the `__galleryData` available globally for the JS to work. You can add the following to your ``:

```

    window.__galleryData = {
      items: {$GalleryData}
    }

```

### Adding the extensions

[](#adding-the-extensions)

Now you can add the `GalleryExtension` to any page type you want to provide a gallery to, e.g.

```
Page:
  extensions:
    - NZTA\Gallery\Extensions\GalleryExtension

```

This will provide the CMS fields to add gallery images to the page.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~706 days

Total

4

Last Release

646d ago

Major Versions

1.0.0 → 2.0.02018-10-19

### Community

Maintainers

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

---

Top Contributors

[![ishannz](https://avatars.githubusercontent.com/u/20032948?v=4)](https://github.com/ishannz "ishannz (6 commits)")[![robbyahn](https://avatars.githubusercontent.com/u/2970208?v=4)](https://github.com/robbyahn "robbyahn (2 commits)")

---

Tags

imagesilverstripecmsgallery

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nzta-gallery/health.svg)

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

###  Alternatives

[frankmullenger/gallery

SilverStripe Gallery Module

243.7k1](/packages/frankmullenger-gallery)

PHPackages © 2026

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