{"id":23219207,"url":"https://github.com/solutionforest/filament-simplelightbox","last_synced_at":"2026-03-16T09:06:09.793Z","repository":{"id":207569676,"uuid":"716473274","full_name":"solutionforest/Filament-SimpleLightBox","owner":"solutionforest","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.","archived":false,"fork":false,"pushed_at":"2025-07-28T04:00:15.000Z","size":199,"stargazers_count":61,"open_issues_count":1,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T06:10:49.182Z","etag":null,"topics":["filament-plugin","filamentphp","fslightbox","lightbox","office-viewer","pdf-viewer"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solutionforest.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"SolutionForest"}},"created_at":"2023-11-09T08:01:26.000Z","updated_at":"2025-07-28T04:00:11.000Z","dependencies_parsed_at":"2024-01-16T09:30:41.317Z","dependency_job_id":"1f76c576-864a-4206-afee-41a4c30d027d","html_url":"https://github.com/solutionforest/Filament-SimpleLightBox","commit_stats":null,"previous_names":["solutionforest/filament-simplelightbox"],"tags_count":13,"template":false,"template_full_name":"filamentphp/plugin-skeleton","purl":"pkg:github/solutionforest/Filament-SimpleLightBox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2FFilament-SimpleLightBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2FFilament-SimpleLightBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2FFilament-SimpleLightBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2FFilament-SimpleLightBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solutionforest","download_url":"https://codeload.github.com/solutionforest/Filament-SimpleLightBox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2FFilament-SimpleLightBox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121771,"owners_count":24702871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filament-plugin","filamentphp","fslightbox","lightbox","office-viewer","pdf-viewer"],"created_at":"2024-12-18T21:20:10.534Z","updated_at":"2026-03-16T09:06:09.774Z","avatar_url":"https://github.com/solutionforest.png","language":"PHP","funding_links":["https://github.com/sponsors/SolutionForest"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://solutionforest.com\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/solutionforest/.github/blob/main/docs/images/sf.png?raw=true\" width=\"200\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\n## About Solution Forest\n\n[Solution Forest](https://solutionforest.com) Web development agency based in Hong Kong. We help customers to solve their problems. We Love Open Soruces. \n\nWe have built a collection of best-in-class products:\n\n- [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.\n- [Filaletter](https://filaletter.solutionforest.net): Filaletter - Filament Newsletter Plugin\n- [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.\n\n\n# Filament SimpleLightbox\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/solution-forest/filament-simplelightbox.svg?style=flat-square)](https://packagist.org/packages/solution-forest/filament-simplelightbox)\n[![Total Downloads](https://img.shields.io/packagist/dt/solution-forest/filament-simplelightbox.svg?style=flat-square)](https://packagist.org/packages/solution-forest/filament-simplelightbox)\n\n\n## Description \n\nFilament 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.\n\n## Features\n- Integration with the [fslightbox](https://github.com/banthagroup/fslightbox \"fslightbox\")  JavaScript library for the lightbox functionality.\n- Supports previewing PDF and Office documents. [information](https://gist.github.com/theel0ja/b9e44a961f892ccf43e217ab74b9417b \"information\")\n- Easy installation and usage.\n\n## Installation\n\n| Filament Version | Filament Simple Light Box Version |\n|------------------|---------------------------|\n| v3.x             | v0.x             |\n| v4.x             | v1.x             |\n| v5.x             | v1.x             |\n\n\nYou can install the package via composer:\n\n```bash\ncomposer require solution-forest/filament-simplelightbox\n```\n\nPublish the assets:\n\n```bash\nphp artisan filament:assets\n```\n```bash\nphp artisan optimize\n```\n\n\n## Usage\n\n```php\npublic function panel(Panel $panel): Panel\n{\n    return $panel\n        // ...\n        -\u003eplugin(SimpleLightBoxPlugin::make())\n}\n```\n\n```php\nTables\\Columns\\ImageColumn::make('image')\n                    -\u003esimpleLightbox()\n```\n\n```php\nTables\\Columns\\TextColumn::make('pdf_url')\n                    -\u003esimpleLightbox(\"Your Url address\"),\n```\n\nYou can pass parameter to generate url, also the url can be used as default value (`defaultDisplayUrl` default is true):\n```php\nTables\\Columns\\ImageColumn::make('image')\n    -\u003esimpleLightbox(fn ($record) =\u003e  $record?-\u003eimage ?? \"Your Image Url address\", defaultDisplayUrl: true),\n```\n```php\nTables\\Columns\\TextColumn::make('url')\n    -\u003esimpleLightbox(fn ($record) =\u003e  $record?-\u003eimage ?? \"Your Image Url address\", defaultDisplayUrl: true),\n```\n```php\nInfoLists\\Components\\ImageEntry::make('image')\n    -\u003esimpleLightbox(fn ($record) =\u003e  $record?-\u003eimage ?? \"Your Image Url address\", defaultDisplayUrl: true),\n```\n```php\nTables\\Columns\\ImageColumn::make('image')\n    -\u003esimpleLightbox(fn ($record) =\u003e  $record?-\u003eimage ?? \"Your Image Url address\", defaultDisplayUrl: true),\n```\n## Preview\n\n\n\nhttps://github.com/solutionforest/Filament-SimpleLightBox/assets/68211972/8bd7b59f-d18b-4f58-911f-822f10cb879b\n\n![image_preview](https://github.com/solutionforest/Filament-SimpleLightBox/assets/68211972/5360c521-1dba-4dd5-88df-cffae21f5b62)\n![url_preview](https://github.com/solutionforest/Filament-SimpleLightBox/assets/68211972/698cc9f0-11ce-4106-832b-f58ce83a36e3)\n![docx_preview](https://github.com/solutionforest/Filament-SimpleLightBox/assets/68211972/7891ad1e-a601-47b5-ac0f-ba0ba7b85554)\n![pptx_preview](https://github.com/solutionforest/Filament-SimpleLightBox/assets/68211972/64cf6bae-d349-4e02-a6e1-a646abd5d508)\n\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [alan](https://github.com/solutionforest)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolutionforest%2Ffilament-simplelightbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolutionforest%2Ffilament-simplelightbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolutionforest%2Ffilament-simplelightbox/lists"}