PHPackages                             dorsetdigital/silverstripe-photoswipe - 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. dorsetdigital/silverstripe-photoswipe

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

dorsetdigital/silverstripe-photoswipe
=====================================

Allows embedding of a simple Photoswipe-powered gallery on a page

v1.0(6y ago)176[2 issues](https://github.com/DorsetDigital/silverstripe-photoswipe/issues)BSD-3-ClauseCSS

Since Sep 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/DorsetDigital/silverstripe-photoswipe)[ Packagist](https://packagist.org/packages/dorsetdigital/silverstripe-photoswipe)[ RSS](/packages/dorsetdigital-silverstripe-photoswipe/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

silverstripe-photoswipe
=======================

[](#silverstripe-photoswipe)

Provides a simple way to embed a responsive image gallery on a page using the Photoswipe library.

Includes gallery functionality along with a lazy-loader for the thumbnails to help with page-load efficiency.

If you are using Elemental, a version of this add-on to work in a page block can be found here:

Requirements
============

[](#requirements)

- Silverstripe 4.x
- bummzack/sortablefile

The front-end code currently requires jQuery to work. If you don't already have it on your site, it can be added with a simple requirements call, eg:

`Requirements::javascript('https://code.jquery.com/jquery-3.3.1.min.js');`

Installation
============

[](#installation)

- Install the code with `composer require dorsetdigital/silverstripe-photoswipe`
- Run a `dev/build?flush` to update your project

Usage
=====

[](#usage)

By default, the module doesn't add anything to your site. You can choose which page types you want extend with the addition of a yml config file. You will need to add an extension to the Page class itself and to its controller for all the features to work. The sample below adds gallery functionality to the base page class, so it would be available on any pages which extend that:

```
---
Name: photoswipe-gallery
---

PageController:
  extensions:
    - DorsetDigital\SilverstripePhotoswipe\ControllerExtension

Page:
  extensions:
    - DorsetDigital\SilverstripePhotoswipe\PageExtension
```

To add the gallery to your actual page, you also need to add a new template variable, eg:

```

  $Gallery

```

The template which produces the standard gallery markup can be overridden, but please note that some of the markup structure is required to make everything work!

Credits
=======

[](#credits)

- The superb PhotoSwipe library -
- Bummzack's sortable file extension for SS4 -

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

3

Last Release

2401d ago

### Community

Maintainers

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

---

Top Contributors

[![DorsetDigital](https://avatars.githubusercontent.com/u/15108750?v=4)](https://github.com/DorsetDigital "DorsetDigital (16 commits)")

---

Tags

galleryphotoswiperesponsivesilverstripe-4silverstripe-modulesilverstripeimagesgallery

### Embed Badge

![Health badge](/badges/dorsetdigital-silverstripe-photoswipe/health.svg)

```
[![Health](https://phpackages.com/badges/dorsetdigital-silverstripe-photoswipe/health.svg)](https://phpackages.com/packages/dorsetdigital-silverstripe-photoswipe)
```

###  Alternatives

[frankmullenger/gallery

SilverStripe Gallery Module

243.7k1](/packages/frankmullenger-gallery)[andrewhoule/silverstripe-photogallery

Creates a basic photo gallery pagetype with albums and photos. Photos within albums are opened with a lightbox.

117.0k1](/packages/andrewhoule-silverstripe-photogallery)

PHPackages © 2026

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