PHPackages                             solution-forest/filament-simplelightbox - 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. solution-forest/filament-simplelightbox

ActiveLibrary

solution-forest/filament-simplelightbox
=======================================

This is my package filament-simplelightbox

1.1.0(2mo ago)6281.0k↓13.9%14[2 issues](https://github.com/solutionforest/Filament-SimpleLightBox/issues)[1 PRs](https://github.com/solutionforest/Filament-SimpleLightBox/pulls)1MITPHPPHP ^8.2CI passing

Since Nov 17Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/solutionforest/Filament-SimpleLightBox)[ Packagist](https://packagist.org/packages/solution-forest/filament-simplelightbox)[ Docs](https://github.com/solutionforest/filament-simplelightbox)[ GitHub Sponsors](https://github.com/SolutionForest)[ RSS](/packages/solution-forest-filament-simplelightbox/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (32)Versions (17)Used By (1)

[![](https://github.com/solutionforest/.github/raw/main/docs/images/sf.png?raw=true)](https://solutionforest.com)

About Solution Forest
---------------------

[](#about-solution-forest)

[Solution Forest](https://solutionforest.com) Web development agency based in Hong Kong. We help customers to solve their problems. We Love Open Soruces.

We have built a collection of best-in-class products:

- [InspireCMS](https://inspirecms.net): A full-featured Laravel CMS with everything you need out of the box. Build smarter, ship faster with our complete content management solution.
- [Filaletter](https://filaletter.solutionforest.net): Filaletter - Filament Newsletter Plugin
- [Website CMS Management](https://filamentphp.com/plugins/solution-forest-cms-website): A hands-on Filament CMS plugin for those who prefer more manual control over their website content management.

Filament SimpleLightbox
=======================

[](#filament-simplelightbox)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c210500994fc9428f8446f3b42e5e7698bcd1c967244ab78104e62f72e352c47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6c7574696f6e2d666f726573742f66696c616d656e742d73696d706c656c69676874626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/solution-forest/filament-simplelightbox)[![Total Downloads](https://camo.githubusercontent.com/2459baeb261b12163c250140acea771f6a6cbc3a2fe78eda7cb15f9b19011b62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6c7574696f6e2d666f726573742f66696c616d656e742d73696d706c656c69676874626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/solution-forest/filament-simplelightbox)

Description
-----------

[](#description)

Filament SimpleLightbox is a PHP package that provides a simple and lightweight solution for implementing a lightbox feature in your Filament admin panel. It allows you to easily preview Image, PDF and Office documents within your Filament.

Features
--------

[](#features)

- Integration with the [fslightbox](https://github.com/banthagroup/fslightbox "fslightbox") JavaScript library for the lightbox functionality.
- Supports previewing PDF and Office documents. [information](https://gist.github.com/theel0ja/b9e44a961f892ccf43e217ab74b9417b "information")
- Easy installation and usage.

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

[](#installation)

Filament VersionFilament Simple Light Box Versionv3.xv0.xv4.xv1.xv5.xv1.xYou can install the package via composer:

```
composer require solution-forest/filament-simplelightbox
```

Publish the assets:

```
php artisan filament:assets
```

```
php artisan optimize
```

Usage
-----

[](#usage)

```
public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugin(SimpleLightBoxPlugin::make())
}
```

```
Tables\Columns\ImageColumn::make('image')
                    ->simpleLightbox()
```

```
Tables\Columns\TextColumn::make('pdf_url')
                    ->simpleLightbox("Your Url address"),
```

You can pass parameter to generate url, also the url can be used as default value (`defaultDisplayUrl` default is true):

```
Tables\Columns\ImageColumn::make('image')
    ->simpleLightbox(fn ($record) =>  $record?->image ?? "Your Image Url address", defaultDisplayUrl: true),
```

```
Tables\Columns\TextColumn::make('url')
    ->simpleLightbox(fn ($record) =>  $record?->image ?? "Your Image Url address", defaultDisplayUrl: true),
```

```
InfoLists\Components\ImageEntry::make('image')
    ->simpleLightbox(fn ($record) =>  $record?->image ?? "Your Image Url address", defaultDisplayUrl: true),
```

```
Tables\Columns\ImageColumn::make('image')
    ->simpleLightbox(fn ($record) =>  $record?->image ?? "Your Image Url address", defaultDisplayUrl: true),
```

Preview
-------

[](#preview)

    demo.mov    [![image_preview](https://private-user-images.githubusercontent.com/68211972/283673049-5360c521-1dba-4dd5-88df-cffae21f5b62.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyODY5NzEsIm5iZiI6MTc3NTI4NjY3MSwicGF0aCI6Ii82ODIxMTk3Mi8yODM2NzMwNDktNTM2MGM1MjEtMWRiYS00ZGQ1LTg4ZGYtY2ZmYWUyMWY1YjYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDA3MTExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiMzVkMWQyYzZhZTliODM0N2ZhMzBhNDFjZDNhOTcxZDk0NjhmNTJkMGUwOGMwOTczOTdkYjQ5MWNjNDM1ZjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ccnmGdRMLtfj-1vIw1bqHuN68U548LwmxL2pHnU-_8M)](https://private-user-images.githubusercontent.com/68211972/283673049-5360c521-1dba-4dd5-88df-cffae21f5b62.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyODY5NzEsIm5iZiI6MTc3NTI4NjY3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BkNTQ3MmQ4NTM2NzIxZWI1YTFjMDM3MTI4ZGEzNGE1MTBhN2E1ZTExMjUzOTYwMDI4YzQ5ZjY4ZTc2NzA0ZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oylfjTVWiQvdsfZYSWnDe9jVIHQ3TaJEx_8ssCNBO3I)](https://private-user-images.githubusercontent.com/68211972/283673001-698cc9f0-11ce-4106-832b-f58ce83a36e3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyODY5NzEsIm5iZiI6MTc3NTI4NjY3MSwicGF0aCI6Ii82ODIxMTk3Mi8yODM2NzMwMDEtNjk4Y2M5ZjAtMTFjZS00MTA2LTgzMmItZjU4Y2U4M2EzNmUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDA3MTExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkNTQ3MmQ4NTM2NzIxZWI1YTFjMDM3MTI4ZGEzNGE1MTBhN2E1ZTExMjUzOTYwMDI4YzQ5ZjY4ZTc2NzA0ZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oylfjTVWiQvdsfZYSWnDe9jVIHQ3TaJEx_8ssCNBO3I)[![docx_preview](https://private-user-images.githubusercontent.com/68211972/283673000-7891ad1e-a601-47b5-ac0f-ba0ba7b85554.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3Lmd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LUFtei1EYXRlPTIwMjYwNDA0VDA3MTExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM3NzZiZWRmZjVmYjcyOGZjYmYxNGY4NTUyZmY4YmFkYjNkMmQzYWRhYjcyYTJkMDg3ZGEyZTQyYzZmNDA2NjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8iaY8QvUWBsFKD_oABcJvUFqiMQ7H6A6f4709gRIxNc)[![pptx_preview](https://private-user-images.githubusercontent.com/68211972/283672991-64cf6bae-d349-4e02-a6e1-a646abd5d508.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyODY5NzEsIm5iZiI6MTc3NTI4NjY3MSwicGF0aCI6Ii82ODIxMTk3Mi8yODM2NzI5OTEtNjRjZjZiYWUtZDM0OS00ZTAyLWE2ZTEtYTY0NmFiZDVkNTA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDA3MTExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3OGU2MzEzZTA4OGZlZTJhZTBiYjBjNjNlOTM2YmRlMTZjODdkNzE1ZTg5MjM0Y2QwY2FiNDU2ZTYxODhjYjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.74cQNLjOoEqTTTielg30TesrOJDrydf_N2gB7J7iBmw)](https://private-user-images.githubusercontent.com/68211972/283672991-64cf6bae-d349-4e02-a6e1-a646abd5d508.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyODY5NzEsIm5iZiI6MTc3NTI4NjY3MSwicGF0aCI6Ii82ODIxMTk3Mi8yODM2NzI5OTEtNjRjZjZiYWUtZDM0OS00ZTAyLWE2ZTEtYTY0NmFiZDVkNTA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDA3MTExMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3OGU2MzEzZTA4OGZlZTJhZTBiYjBjNjNlOTM2YmRlMTZjODdkNzE1ZTg5MjM0Y2QwY2FiNDU2ZTYxODhjYjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.74cQNLjOoEqTTTielg30TesrOJDrydf_N2gB7J7iBmw)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [alan](https://github.com/solutionforest)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 61.8% 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 ~60 days

Recently: every ~146 days

Total

15

Last Release

64d ago

Major Versions

0.0.2 → 3.x-dev2023-11-17

0.0.11 → 1.0.0-beta.12025-06-30

PHP version history (2 changes)0.0.1PHP ^8.1

1.0.0-beta.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9499120912b47a170291b3b795ea0255f060d8500bd2988535e4e6faccee5c8d?d=identicon)[solutionforest](/maintainers/solutionforest)

---

Top Contributors

[![lam0819](https://avatars.githubusercontent.com/u/68211972?v=4)](https://github.com/lam0819 "lam0819 (63 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (19 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")[![cklei-carly](https://avatars.githubusercontent.com/u/68525320?v=4)](https://github.com/cklei-carly "cklei-carly (7 commits)")[![sfkelseylee](https://avatars.githubusercontent.com/u/138422247?v=4)](https://github.com/sfkelseylee "sfkelseylee (2 commits)")[![ImJustToNy](https://avatars.githubusercontent.com/u/5730766?v=4)](https://github.com/ImJustToNy "ImJustToNy (1 commits)")

---

Tags

filament-pluginfilamentphpfslightboxlightboxoffice-viewerpdf-viewerlaravelsolutionforestfilament-simplelightbox

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/solution-forest-filament-simplelightbox/health.svg)

```
[![Health](https://phpackages.com/badges/solution-forest-filament-simplelightbox/health.svg)](https://phpackages.com/packages/solution-forest-filament-simplelightbox)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

27584.7k16](/packages/bezhansalleh-filament-plugin-essentials)[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

7565.0k4](/packages/guava-filament-modal-relation-managers)

PHPackages © 2026

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