PHPackages                             taki47/laravel-gallery - 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. taki47/laravel-gallery

ActiveLibrary

taki47/laravel-gallery
======================

Reusable Laravel image gallery package

v1.0.3(1mo ago)09↑2566.7%MITPHPPHP ^8.2

Since Mar 27Pushed 1mo agoCompare

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

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

Laravel Gallery
===============

[](#laravel-gallery)

Reusable **image gallery package for Laravel** with an admin interface, image upload, drag &amp; drop sorting and a simple frontend gallery.

---

Features
--------

[](#features)

- Gallery CRUD (admin)
- Image upload with drag &amp; drop
- Caption and alt text editing
- Image sorting (drag &amp; drop)
- Public gallery frontend
- Configurable routes and pagination
- Publishable views, config, translations and assets
- Works with **Laravel 10, 11, 12 and 13**

---

Installation
============

[](#installation)

Install the package via Composer:

```
composer require taki47/laravel-gallery

```

Publish package files:

```
php artisan gallery:install

```

Run migrations:

```
php artisan migrate

```

---

Configuration
=============

[](#configuration)

The package can be configured either through the published config file **or via environment variables**.

Environment variables
---------------------

[](#environment-variables)

You may define the following variables in your `.env` file:

```
GALLERY_ROUTE_PREFIX=galleries
GALLERY_ADMIN_PREFIX=admin/galleries
GALLERY_DISK=public
GALLERY_UPLOAD_PATH=gallery
GALLERY_PER_PAGE=12

```

Config file
-----------

[](#config-file)

If you prefer, you can publish and modify the configuration file:

```
php artisan vendor:publish --tag=gallery-config

```

This will create:

```
config/gallery.php

```

Example configuration:

```
return [

    "route_prefix" => env("GALLERY_ROUTE_PREFIX", "galleries"),

    "middleware" => ['web'],

    "admin_prefix" => env("GALLERY_ADMIN_PREFIX", "admin/galleries"),

    "admin_middleware" => ["web", "auth"],

    "disk" => env("GALLERY_DISK", "public"),

    "upload_path" => env("GALLERY_UPLOAD_PATH", "gallery"),

    "per_page" => env("GALLERY_PER_PAGE", 12),

];

```

If no configuration is published, the package will use the default values.

---

Usage
=====

[](#usage)

Frontend gallery list
---------------------

[](#frontend-gallery-list)

```
/galleries

```

Displays all public galleries.

Single gallery
--------------

[](#single-gallery)

```
/galleries/{slug}

```

Displays a gallery with all images.

---

Admin Panel
===========

[](#admin-panel)

Admin routes:

```
/admin/galleries

```

Features:

- create galleries
- edit galleries
- delete galleries
- upload images
- edit captions
- reorder images

Image manager includes:

- drag &amp; drop sorting
- caption editing
- alt text editing
- instant save

---

Image Upload
============

[](#image-upload)

Images are uploaded into:

```
storage/app/public/gallery/{gallery-slug}

```

Filenames are automatically:

- slugified
- made unique if duplicates exist

Example:

```
my-photo.jpg
my-photo-1.jpg
my-photo-2.jpg

```

---

Customization
=============

[](#customization)

You can publish package resources:

Config
------

[](#config)

```
php artisan vendor:publish --tag=gallery-config

```

Views
-----

[](#views)

```
php artisan vendor:publish --tag=gallery-views

```

Translations
------------

[](#translations)

```
php artisan vendor:publish --tag=gallery-lang

```

Assets
------

[](#assets)

```
php artisan vendor:publish --tag=gallery-assets

```

---

Requirements
============

[](#requirements)

- PHP **8.2+**
- Laravel **10+**

---

License
=======

[](#license)

MIT License

---

Author
======

[](#author)

**Lajos Takács**

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity50

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

47d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5ee1d77a429faf7ebb4ca55fca0321e94ca87652f4ca363a1796616ea0579ab?d=identicon)[taki47](/maintainers/taki47)

---

Tags

laravelgalleryimage galleryimage managerlaravel gallery

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/taki47-laravel-gallery/health.svg)

```
[![Health](https://phpackages.com/badges/taki47-laravel-gallery/health.svg)](https://phpackages.com/packages/taki47-laravel-gallery)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[glhd/linen

21135.6k](/packages/glhd-linen)

PHPackages © 2026

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