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)3631[3 issues](https://github.com/Xirdion/contao-photoswipe-bundle/issues)AGPL-3.0-or-laterJavaScriptPHP ^8.1

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 1mo ago

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

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

1336d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ffc913d0319d3971a6c2d2baf7e06a5bd17d662d8221fd08550b726dc2864339?d=identicon)[Xirdion](/maintainers/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

[terminal42/contao-pageimage

\[Contao CMS\] Assign images to pages and output them on layout level using a frontend module.

1358.8k2](/packages/terminal42-contao-pageimage)[plenta/contao-jobs-basic-bundle

Basic Job Manager for Contao (including Google Jobs).

335.1k](/packages/plenta-contao-jobs-basic-bundle)[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.

112.8k](/packages/tastaturberuf-contao-image-copyright-bundle)[inspiredminds/contao-image-alternatives

Contao extension to provide the possibility of defining alternative images to be used on different output devices.

121.9k](/packages/inspiredminds-contao-image-alternatives)[craffft/contao-photoalbums2

Photoalbums2 for Contao OpenSource CMS

121.2k1](/packages/craffft-contao-photoalbums2)

PHPackages © 2026

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