PHPackages                             xirdion/contao-photoswipe-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. [Image &amp; Media](/categories/media)
4. /
5. xirdion/contao-photoswipe-bundle

ActiveContao-bundle[Image &amp; Media](/categories/media)

xirdion/contao-photoswipe-bundle
================================

contao bundle to add the photoswipe lightbox to a contao project

1.1.0(3y ago)3661[3 issues](https://github.com/Xirdion/contao-photoswipe-bundle/issues)AGPL-3.0-or-laterJavaScriptPHP ^8.1CI failing

Since Mar 11Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Xirdion/contao-photoswipe-bundle)[ Packagist](https://packagist.org/packages/xirdion/contao-photoswipe-bundle)[ RSS](/packages/xirdion-contao-photoswipe-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (12)Versions (10)Used By (0)

Contao Photoswipe Bundle
========================

[](#contao-photoswipe-bundle)

This bundle implements [Photoswipe.js](https://photoswipe.com/v5/docs/getting-started/) as lightbox for images and galleries.

---

**Note:**

A customized version of photoswipe ist used otherwise there was an error closing the lightbox.

The code was upgraded according to [this issue](https://github.com/dimsemenov/PhotoSwipe/issues/1809).

---

Additional HTML markup is added dynamically while parsing the templates:

- At the moment only `image` and `gallery` templates are taken into account
- A **unique photoswipe-gallery-class** (`pswp__container--`) is generated and added to following template-properties:
    - `floatClass` for image templates
    - `row` for gallery templates
- The `data-pswp-src` is added to the image anchor tag
- The dimensions of the original image are added with `data-pswp-width` and `data-pswp-height` to the image tag

**The additional CSS and JS resources are added to the response only if there are any unique photoswipe selectors**

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

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

Recently: every ~47 days

Total

9

Last Release

1383d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.1.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17783055?v=4)[Thomas Dirscherl](/maintainers/Xirdion)[@Xirdion](https://github.com/Xirdion)

---

Top Contributors

[![Xirdion](https://avatars.githubusercontent.com/u/17783055?v=4)](https://github.com/Xirdion "Xirdion (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/xirdion-contao-photoswipe-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/xirdion-contao-photoswipe-bundle/health.svg)](https://phpackages.com/packages/xirdion-contao-photoswipe-bundle)
```

###  Alternatives

[contao/manager-bundle

Provides the Contao Managed Edition

181.3M75](/packages/contao-manager-bundle)[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

135.2k1](/packages/markocupic-calendar-event-booking-bundle)[plenta/contao-jobs-basic-bundle

Basic Job Manager for Contao (including Google Jobs).

325.4k](/packages/plenta-contao-jobs-basic-bundle)[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k92](/packages/contao-community-alliance-dc-general)[tastaturberuf/contao-image-copyright-bundle

With this Contao bundle you can easily add a copyright notice to all images and then display them in a module.

113.1k](/packages/tastaturberuf-contao-image-copyright-bundle)

PHPackages © 2026

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