PHPackages                             smallruraldog/light-box - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. smallruraldog/light-box

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

smallruraldog/light-box
=======================

灯箱扩展

1.0.2(7y ago)86.0k5[4 issues](https://github.com/SmallRuralDog/light-box/issues)[1 PRs](https://github.com/SmallRuralDog/light-box/pulls)2MITCSSPHP &gt;=7.0.0

Since Dec 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/SmallRuralDog/light-box)[ Packagist](https://packagist.org/packages/smallruraldog/light-box)[ Docs](https://github.com/SmallRuralDog/light-box)[ RSS](/packages/smallruraldog-light-box/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (2)Versions (4)Used By (2)

laravel-admin 列表图片浏览扩展
======================

[](#laravel-admin-列表图片浏览扩展)

- 单图浏览
- 多图浏览

#### 安装

[](#安装)

```
composer require smallruraldog/light-box

```

#### 发布资源

[](#发布资源)

```
php artisan vendor:publish --provider=SmallRuralDog\LightBox\LightBoxServiceProvider

```

#### 配置

[](#配置)

```
'extensions' => [
    'light-box' => [
        // Set to `false` if you want to disable this extension
        'enable' => true,
    ]
 ]

```

#### 使用方法

[](#使用方法)

```
// simple lightbox
$grid->picture()->lightbox();

//gallery
$grid->picture()->gallery();

//zoom effect
$grid->picture()->lightbox(['zooming' => true]);
$grid->picture()->gallery(['zooming' => true]);

//width & height properties
$grid->picture()->lightbox(['width' => 50, 'height' => 50]);
$grid->picture()->gallery(['width' => 50, 'height' => 50]);

```

> 当字段为数组时为多图浏览

#### 预览

[](#预览)

[![image](https://user-images.githubusercontent.com/5151848/50127265-6f363f00-02ab-11e9-8386-b7cecc044e42.png)](https://user-images.githubusercontent.com/5151848/50127265-6f363f00-02ab-11e9-8386-b7cecc044e42.png)

[![image](https://user-images.githubusercontent.com/5151848/50127285-85dc9600-02ab-11e9-939a-19aefae98da5.png)](https://user-images.githubusercontent.com/5151848/50127285-85dc9600-02ab-11e9-939a-19aefae98da5.png)

#### License

[](#license)

Licensed under The [MIT License (MIT). ](https://github.com/SmallRuralDog/light-box/blob/master/LICENSE)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

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

Total

3

Last Release

2755d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/675dd15fd62ee78fa0b66e1dc8fdbd29555ff61fa48aa633ff26c7eac7806624?d=identicon)[SmallRuralDog](/maintainers/SmallRuralDog)

---

Top Contributors

[![SmallRuralDog](https://avatars.githubusercontent.com/u/5151848?v=4)](https://github.com/SmallRuralDog "SmallRuralDog (8 commits)")

---

Tags

laravel-adminlaravel-admin-extensionextensionlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smallruraldog-light-box/health.svg)

```
[![Health](https://phpackages.com/badges/smallruraldog-light-box/health.svg)](https://phpackages.com/packages/smallruraldog-light-box)
```

###  Alternatives

[laravel-admin-ext/china-distpicker

Distpicker extension for laravel-admin

13444.4k](/packages/laravel-admin-ext-china-distpicker)[laravel-admin-ext/grid-lightbox

Turn your grid into a lightbox &amp; gallery

58186.3k2](/packages/laravel-admin-ext-grid-lightbox)[laravel-admin-ext/grid-sortable

Sort the grid data by drag and drop rows

42123.7k](/packages/laravel-admin-ext-grid-sortable)[laravel-admin-ext/phpinfo

Show php information in laravel-admin

2821.5k](/packages/laravel-admin-ext-phpinfo)[jxlwqq/quill

quill editor for laravel-admin

2428.6k](/packages/jxlwqq-quill)[cyd622/laravel-admin-ext-echarts

Use Echarts in laravel-admin

349.6k](/packages/cyd622-laravel-admin-ext-echarts)

PHPackages © 2026

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