PHPackages                             smirltech/laravel-media - 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. smirltech/laravel-media

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

smirltech/laravel-media
=======================

Associate files to with eloquent models

v1.5.1(2y ago)02.8k[2 PRs](https://github.com/smirltech/laravel-media/pulls)MITPHPPHP ^8.0

Since Jan 4Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (9)Versions (18)Used By (0)

Associate files to with eloquent models
=======================================

[](#associate-files-to-with-eloquent-models)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e4e145122e15af922bca22c8be3ab23cd1f31620c1394e0a32ecc642c0e05599/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d69726c746563682f6c61726176656c2d6d656469612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smirltech/laravel-media)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8826e9c7f15763a691c397e50e24e905c8e2e331af9b1a4ca5b771f1ee281f1f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736d69726c746563682f6c61726176656c2d6d656469612f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/smirltech/laravel-media/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5773b8da805b796ff7c47b825749f5dd4017b64cdd59771af59530f034761705/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736d69726c746563682f6c61726176656c2d6d656469612f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/smirltech/laravel-media/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3d82b719415b19f8159b0c16c5bb4176c5205453be9ffdf03009c0bce4e0011a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d69726c746563682f6c61726176656c2d6d656469612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smirltech/laravel-media)

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

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/62715eec84eed962b8dfedb1f9b69c8788e9817dcd61bc2c2c7d64293eadd449/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6d656469612e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-media)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require smirltech/laravel-media
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-media-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-media-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-media-views"
```

Usage
-----

[](#usage)

```
$laravelMedia = new SmirlTech\LaravelMedia();
echo $laravelMedia->echoPhrase('Hello, SmirlTech!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Marien Mupenda](https://github.com/MarienMupenda)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89% 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 ~54 days

Recently: every ~150 days

Total

14

Last Release

518d ago

Major Versions

1.x-dev → 2.x-dev2024-12-10

### Community

Maintainers

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

---

Top Contributors

[![MarienMupenda](https://avatars.githubusercontent.com/u/57844897?v=4)](https://github.com/MarienMupenda "MarienMupenda (89 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

filemanagerlaravellivewirepackagephplaravellaravel-mediaSmirlTech

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/smirltech-laravel-media/health.svg)

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

###  Alternatives

[spatie/livewire-filepond

Upload files using Filepond in Livewire components

306452.7k3](/packages/spatie-livewire-filepond)[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4861.2M8](/packages/leandrocfe-filament-apex-charts)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[elegantly/laravel-invoices

Store invoices safely in your Laravel application

23131.8k](/packages/elegantly-laravel-invoices)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)

PHPackages © 2026

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