PHPackages                             unscode/galleries - 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. unscode/galleries

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

unscode/galleries
=================

A simple gallery package

v1.0.7(6y ago)01401MITCSSCI failing

Since Jul 11Pushed 6y agoCompare

[ Source](https://github.com/jorgecrodrigues/galleries)[ Packagist](https://packagist.org/packages/unscode/galleries)[ RSS](/packages/unscode-galleries/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Galleries
=========

[](#galleries)

A simple package of galleries to attach on a model

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

[](#installation)

Add to composer.json

```
  "require": {
    "unscode/galleries": "1.0.*"
  }

```

ou

```
  composer require unscode/galleries

```

Service Provider
----------------

[](#service-provider)

Open `config/app.php` then add

`Mixdinternet\Galleries\Providers\GalleriesServiceProvider::class`

Facades
-------

[](#facades)

Open `config/app.php` then add

`'Gallery'   => Mixdinternet\Galleries\Facades\Gallery::class`

Publishing the files
--------------------

[](#publishing-the-files)

```
$ php artisan vendor:publish --provider="Mixdinternet\Galleries\Providers\GalleriesServiceProvider" --tag="assets"
$ php artisan vendor:publish --provider="Mixdinternet\Galleries\Providers\GalleriesServiceProvider" --tag="config"

```

Running migrations
------------------

[](#running-migrations)

```
$ composer dump-autoload
$ php artisan migrate

```

Merge css/javascript into your gulpfile.js
------------------------------------------

[](#merge-cssjavascript-into-your-gulpfilejs)

```
...
.styles([
...
	'resources/assets/css/dropzonejs.css',
...
	],
	'public/assets/css/admin.css',
	'./')
...
.scripts([
...
	'resources/assets/js/dropzone.min.js',
	'resources/assets/js/jquery-ui.sortable.min.js',
...
    'resources/assets/js/galleries-start.js'
...
	],
    'public/assets/js/admin.js',
    './')
...

```

Attaching the gallery to your model
-----------------------------------

[](#attaching-the-gallery-to-your-model)

```
use Mixdinternet\Galleries\GalleriableInterface;
use Mixdinternet\Galleries\GalleriableTrait;

class Post extends Model implements GalleriableInterface
{
    use GalleriableTrait;

```

Load the grid in your panel
---------------------------

[](#load-the-grid-in-your-panel)

```
{!! Gallery::form($post, [customGalleryName]) !!}

```

Lists all images from a model
-----------------------------

[](#lists-all-images-from-a-model)

```
Post::first()->galleries([customGalleryName])->images();

```

If you want to return the default gallery images
------------------------------------------------

[](#if-you-want-to-return-the-default-gallery-images)

```
Post::first()->gallery->images();

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~1 days

Total

8

Last Release

2391d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52082951?v=4)[Unscode](/maintainers/unscode)[@unscode](https://github.com/unscode)

---

Top Contributors

[![jorgecrodrigues](https://avatars.githubusercontent.com/u/21241749?v=4)](https://github.com/jorgecrodrigues "jorgecrodrigues (9 commits)")

---

Tags

laravelimagesgallery

### Embed Badge

![Health badge](/badges/unscode-galleries/health.svg)

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

###  Alternatives

[classic-o/nova-media-library

Tool and field that will let you managing files and add them to the posts

154172.0k](/packages/classic-o-nova-media-library)[silvanite/nova-field-cloudinary

A Laravel Nova Image Field with Flysystem Adapter for storing and retrieving media from Cloudinary

2772.0k3](/packages/silvanite-nova-field-cloudinary)[okipa/laravel-medialibrary-ext

Extra features for spatie/laravel-medialibrary package.

1011.2k](/packages/okipa-laravel-medialibrary-ext)

PHPackages © 2026

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