PHPackages                             dodecastudio/craft-lightbox - 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. dodecastudio/craft-lightbox

ActiveCraft-plugin[Image &amp; Media](/categories/media)

dodecastudio/craft-lightbox
===========================

A simple, responsive, accessible and customisable lightbox gallery that integrates seamlessly with Craft CMS.

2.0.2(1y ago)0487proprietaryTwigPHP &gt;=7.4

Since Jun 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dodecastudio/craft-lightbox)[ Packagist](https://packagist.org/packages/dodecastudio/craft-lightbox)[ RSS](/packages/dodecastudio-craft-lightbox/feed)WikiDiscussions main Synced 3w ago

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

Craft Lightbox plugin for Craft CMS
===================================

[](#craft-lightbox-plugin-for-craft-cms)

[![](src/icon.svg)](src/icon.svg)

Craft Lightbox renders a simple and lightweight lightbox that is both responsive and accessible. It's suitable for anyone seeking a quick plug-and-play lightbox solution without much setup required.

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

[](#requirements)

- Craft CMS 3.X, 4.X or 5.X
- PHP 7.4+

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

[](#installation)

Install the plugin as follows:

1. Open your terminal and go to your Craft project:

    ```
    cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
    composer require dodecastudio/craft-lightbox

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Lightbox.

Getting started
---------------

[](#getting-started)

The fastest way to take a look at the lightbox in action, is to copy the [demo.twig](resources/demo.twig) file in to your project and view it in a browser. So long as you have some assets in your project, you should see some content on that page.

Otherwise, create an `AssetQuery` and give it to lightbox's `gallery` method. Then include lightbox's `render` method like so:

```
{# Fetch some images #}
{% set myAssetQuery = craft.assets().kind("image").limit(20) %}

{# Display the images in a gallery #}
{{ craft.lightbox.gallery(myAssetQuery) }}

{# Embed the Lightbox on the page #}
{{ craft.lightbox.render() }}
```

Please see the [Craft Lightbox Docs](https://github.com/dodecastudio/craft-lightbox/wiki) for a complete guide, including more [templating](https://github.com/dodecastudio/craft-lightbox/wiki/Templating) examples and full details on [configuration](https://github.com/dodecastudio/craft-lightbox/wiki/Configuration).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance46

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Recently: every ~199 days

Total

21

Last Release

401d ago

Major Versions

1.0.13 → 2.0.02024-04-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/183310?v=4)[Tom Kiss](/maintainers/tomkiss)[@tomkiss](https://github.com/tomkiss)

---

Top Contributors

[![tomkiss](https://avatars.githubusercontent.com/u/183310?v=4)](https://github.com/tomkiss "tomkiss (82 commits)")

---

Tags

imagescmsassetsgalleryCraftcraftcmscraft-pluginlightbox

### Embed Badge

![Health badge](/badges/dodecastudio-craft-lightbox/health.svg)

```
[![Health](https://phpackages.com/badges/dodecastudio-craft-lightbox/health.svg)](https://phpackages.com/packages/dodecastudio-craft-lightbox)
```

###  Alternatives

[verbb/image-resizer

Resize assets when they are uploaded.

127276.0k8](/packages/verbb-image-resizer)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[spacecatninja/imager-x

Ninja powered image transforms.

29405.1k38](/packages/spacecatninja-imager-x)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[doublesecretagency/craft-googlemaps

Maps in minutes. Powered by the Google Maps API.

1270.1k](/packages/doublesecretagency-craft-googlemaps)

PHPackages © 2026

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