PHPackages                             adevpmftc/laravel-minio-media-library-provider - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. adevpmftc/laravel-minio-media-library-provider

ActiveLibrary[File &amp; Storage](/categories/file-storage)

adevpmftc/laravel-minio-media-library-provider
==============================================

0.2.0(11mo ago)06MITPHP

Since Jun 12Pushed 11mo agoCompare

[ Source](https://github.com/AdevPmftc/minio-media-library-provider)[ Packagist](https://packagist.org/packages/adevpmftc/laravel-minio-media-library-provider)[ RSS](/packages/adevpmftc-laravel-minio-media-library-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laravel Minio Media Library Provider
====================================

[](#laravel-minio-media-library-provider)

This package fixes a feature in [spatie/laravel-media-library](https://github.com/spatie/laravel-medialibrary) where temporary URLs are generated incorrectly when using Minio. It returns the endpoint URL which is inaccessible outside of a Docker application network. This will ensure that the temporary URL generated is accessible outside of the Docker application network.

This assumes that you have a Minio container running on the same Docker network as your Laravel application.

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

[](#installation)

```
composer require adevpmftc/laravel-minio-media-library-provider
```

Publish the config file:

```
php artisan vendor:publish --provider="AdevPmftc\LaravelMinioMediaLibraryProvider\MinioServiceProvider"
```

Usage
-----

[](#usage)

Make sure that you have the following environment variable set:

```
MINIO_URL=http://localhost:9001
```

Although, when using CoreProc's Laravel Docker, this is already set for you from environment variables set in our `docker-compose.yml` file.

If `MNIO_URL` is not set, there will be no changes to the default Laravel Media Library URL Generator. This is useful in production environments where you don't want to use the temporary URL generator.

Next, change the `url_generator` in your `config/media-library.php` file to the `UrlGenerator` in this package:

```
'url_generator' => \AdevPmftc\LaravelMinioMediaLibraryProvider\UrlGenerator::class,
```

That's it! You should now be able to correctly generate temporary URLs for your media files hosted with Minio.

If you have any `S3` disks that you don't want to route through the MINIO\_URL, you can add the `is_minio => false` to your disk in the `config/filesystems.php` file:

```
return [
    'disks' => [
        ...
        'other-s3' => [
            'driver' => 's3',
            ...
            'is_minio' => false,
        ],
    ],
];
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance52

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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

2

Last Release

335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/111575d28709d94013bbe091079787efe1c49c874d72d050f5d9ad002f377bb0?d=identicon)[AdevPmftc](/maintainers/AdevPmftc)

---

Top Contributors

[![alfan06](https://avatars.githubusercontent.com/u/56281741?v=4)](https://github.com/alfan06 "alfan06 (2 commits)")

### Embed Badge

![Health badge](/badges/adevpmftc-laravel-minio-media-library-provider/health.svg)

```
[![Health](https://phpackages.com/badges/adevpmftc-laravel-minio-media-library-provider/health.svg)](https://phpackages.com/packages/adevpmftc-laravel-minio-media-library-provider)
```

###  Alternatives

[dmitrybubyakin/nova-medialibrary-field

Laravel Nova field for managing the Spatie media library.

268612.7k2](/packages/dmitrybubyakin-nova-medialibrary-field)[craftcms/aws-s3

Amazon S3 integration for Craft CMS

631.5M26](/packages/craftcms-aws-s3)[ahmed-aliraqi/laravel-media-uploader

This package used to upload files using laravel-media-library

34024.3k3](/packages/ahmed-aliraqi-laravel-media-uploader)[tapp/laravel-uppy-s3-multipart-upload

Multipart Uploads using Laravel, AWS S3, and Uppy

84116.7k](/packages/tapp-laravel-uppy-s3-multipart-upload)[vaersaagod/dospaces

DigitalOcean Spaces integration for Craft CMS

36100.3k1](/packages/vaersaagod-dospaces)[silverstripe/s3

Adds SilverStripe support for using the S3 adapter for Flysystem

20297.0k1](/packages/silverstripe-s3)

PHPackages © 2026

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