PHPackages                             comotic/laravel-medialibrary-generators - 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. comotic/laravel-medialibrary-generators

ActiveLibrary

comotic/laravel-medialibrary-generators
=======================================

Collections of Path generators for Spatie laravel-medialibrary pacakge

1.0.0(5y ago)3519MITPHPPHP ^8.0

Since May 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/comotic/laravel-medialibrary-generators)[ Packagist](https://packagist.org/packages/comotic/laravel-medialibrary-generators)[ Docs](https://github.com/comotic/laravel-medialibrary-generators)[ GitHub Sponsors](https://github.com/Comotic)[ RSS](/packages/comotic-laravel-medialibrary-generators/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Collection of Path generators for Spatie laravel-medialibrary package
=====================================================================

[](#collection-of-path-generators-for-spatie-laravel-medialibrary-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/29f573f89c7b2144ad1493a4d861a1f77ceebf70c85ec57fe362378f3c2e94f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6d6f7469632f6c61726176656c2d6d656469616c6962726172792d67656e657261746f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/comotic/laravel-medialibrary-generators)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a24b30cc37c92efbda55bf3bf049c608713ee615617da5060322675ff4a6c143/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f636f6d6f7469632f6c61726176656c2d6d656469616c6962726172792d67656e657261746f72732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/comotic/laravel-medialibrary-generators/actions?query=workflow%3ATests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/255cc7b5affdddee0a996081d60c371016ed4c39501e329483050aaf35070a61/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f636f6d6f7469632f6c61726176656c2d6d656469616c6962726172792d67656e657261746f72732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/comotic/laravel-medialibrary-generators/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4deeb73a96415aa49770467271882380a28366863f25cd8954d145891bb486df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6d6f7469632f6c61726176656c2d6d656469616c6962726172792d67656e657261746f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/comotic/laravel-medialibrary-generators)

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require comotic/laravel-medialibrary-generators
```

Usage
-----

[](#usage)

If you haven't already done that, you must publish laravel-medialibray config file:

```
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="config"
```

Then choose the generator that fits your needs and update the `path_generator` key of the config file.

That's it, profit!

### Providers

[](#providers)

- `UuidPathGenerator`: Use Media's UUID instead of key to name the folder
- `SeparatedByModelPathGenerator`: Group media by model type then by media id

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)

- [Nicolas Perraut](https://github.com/tuarrep)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

1832d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/318ad62467e3a60650200d803ffc954ac86707f07147b1a848f2d4e32cb60c17?d=identicon)[nperraut](/maintainers/nperraut)

---

Top Contributors

[![tuarrep](https://avatars.githubusercontent.com/u/6941014?v=4)](https://github.com/tuarrep "tuarrep (1 commits)")

---

Tags

pathproviderlaravel-medialibrary

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/comotic-laravel-medialibrary-generators/health.svg)

```
[![Health](https://phpackages.com/badges/comotic-laravel-medialibrary-generators/health.svg)](https://phpackages.com/packages/comotic-laravel-medialibrary-generators)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k37.7M472](/packages/spatie-laravel-medialibrary)[league/container

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[league/uri-components

URI components manipulation library

31932.3M67](/packages/league-uri-components)[matthiasmullie/path-converter

Relative path converter

10229.6M7](/packages/matthiasmullie-path-converter)[galbar/jsonpath

JSONPath implementation for querying and updating JSON objects

2136.4M78](/packages/galbar-jsonpath)[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

618.4M8](/packages/socialiteproviders-apple)

PHPackages © 2026

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