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

ActiveLibrary[Image &amp; Media](/categories/media)

mrshanebarron/lightbox
======================

Image lightbox gallery component for Laravel - supports Livewire and Vue

v1.0.3(5mo ago)015MITBladePHP ^8.1

Since Dec 14Pushed 4mo agoCompare

[ Source](https://github.com/mrshanebarron/lightbox)[ Packagist](https://packagist.org/packages/mrshanebarron/lightbox)[ RSS](/packages/mrshanebarron-lightbox/feed)WikiDiscussions main Synced 1mo ago

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

Lightbox
========

[](#lightbox)

An image lightbox gallery component for Laravel applications. Click to open images in fullscreen overlay with navigation. Works with Livewire and Vue 3.

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

[](#installation)

```
composer require mrshanebarron/lightbox
```

Livewire Usage
--------------

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```

```

### With Thumbnails and Captions

[](#with-thumbnails-and-captions)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`images`array`[]`Array of image objects`columns`number`3`Grid columnsVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbLightbox } from './vendor/sb-lightbox';
app.component('SbLightbox', SbLightbox);
```

### Basic Usage

[](#basic-usage-1)

```

const images = [
  { src: '/images/photo1.jpg', alt: 'Mountain sunset' },
  { src: '/images/photo2.jpg', alt: 'Ocean view' },
  { src: '/images/photo3.jpg', alt: 'Forest path' }
];

```

### With Thumbnails and Captions

[](#with-thumbnails-and-captions-1)

```

const gallery = [
  {
    src: '/images/full/photo1.jpg',
    thumbnail: '/images/thumbs/photo1.jpg',
    alt: 'Beach sunset',
    caption: 'Sunset at Malibu Beach, California'
  },
  {
    src: '/images/full/photo2.jpg',
    thumbnail: '/images/thumbs/photo2.jpg',
    alt: 'Mountain peak',
    caption: 'View from the summit'
  }
];

```

### Portfolio Gallery

[](#portfolio-gallery)

```

    Portfolio

const portfolio = [
  { src: '/work/project1.jpg', caption: 'E-commerce Redesign' },
  { src: '/work/project2.jpg', caption: 'Mobile App UI' },
  { src: '/work/project3.jpg', caption: 'Brand Identity' },
  { src: '/work/project4.jpg', caption: 'Web Application' },
  { src: '/work/project5.jpg', caption: 'Marketing Campaign' },
  { src: '/work/project6.jpg', caption: 'Product Photography' }
];

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`images`Array`[]`Array of image objects`columns`Number`3`Grid columns for thumbnailsImage Object
------------

[](#image-object)

```
{
  src: '/path/to/full-image.jpg',  // Required - Full size image
  thumbnail: '/path/to/thumb.jpg', // Optional - Thumbnail (uses src if not set)
  alt: 'Image description',        // Optional - Alt text
  caption: 'Display caption'       // Optional - Shown below image
}
```

Keyboard Navigation
-------------------

[](#keyboard-navigation)

KeyAction`Escape`Close lightbox`←`Previous image`→`Next imageFeatures
--------

[](#features)

- **Grid Gallery**: Responsive thumbnail grid
- **Fullscreen Overlay**: Dark backdrop lightbox
- **Navigation**: Previous/next arrows
- **Counter**: Shows current position (1 / 6)
- **Captions**: Optional image captions
- **Keyboard Support**: Arrow key navigation
- **Click Outside**: Close on backdrop click
- **Zoom Effect**: Thumbnail hover zoom

Styling
-------

[](#styling)

Uses Tailwind CSS:

- Responsive grid layout
- Dark overlay backdrop
- White navigation arrows
- Smooth fade transitions
- Rounded thumbnails

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

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x

License
-------

[](#license)

MIT License

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance73

Regular maintenance activity

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Total

4

Last Release

154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a38dc9b4ccc180ee3e9df8879f8747ea9dbf36812c6546827fe504fa8993eb8?d=identicon)[mrshanebarron](/maintainers/mrshanebarron)

### Embed Badge

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

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

###  Alternatives

[creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

5467.5M54](/packages/creativeorange-gravatar)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)

PHPackages © 2026

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