PHPackages                             pinpon/laravel-medialibrary-uploader - 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. pinpon/laravel-medialibrary-uploader

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

pinpon/laravel-medialibrary-uploader
====================================

Simple helper to directly upload file to your model's media collections

v1.0.0(3y ago)02[4 PRs](https://github.com/tuarrep/laravel-medialibrary-uploader/pulls)MITPHPPHP ^8.1

Since May 31Pushed 1y agoCompare

[ Source](https://github.com/tuarrep/laravel-medialibrary-uploader)[ Packagist](https://packagist.org/packages/pinpon/laravel-medialibrary-uploader)[ Docs](https://github.com/pinpon/simple-uploader)[ RSS](/packages/pinpon-laravel-medialibrary-uploader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (16)Versions (6)Used By (0)

A helper to directly upload files from request to laravel-medialibrary
======================================================================

[](#a-helper-to-directly-upload-files-from-request-to-laravel-medialibrary)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f23456252885b733efdfd269ce21e21f2c10a08888b96c4d20ce6a427f1a226f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70696e706f6e2f6c61726176656c2d6d656469616c6962726172792d75706c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pinpon/laravel-medialibrary-uploader)[![GitHub Tests Action Status](https://camo.githubusercontent.com/041b5338d12e5124a1d3fd62f9490785d2adcde7aa71145626978afec62b5c1d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f70696e706f6e2d6465762f6c61726176656c2d6d656469616c6962726172792d75706c6f616465722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/pinpon/laravel-medialibrary-uploader/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6c3eb237faa9e0bf389355ef8193dec2adc7a51382ea43620578b3f7600c5b51/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f70696e706f6e2d6465762f6c61726176656c2d6d656469616c6962726172792d75706c6f616465722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/pinpon/laravel-medialibrary-uploader/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b3bc747742341f0b1bec322505c3691c66ec4ff88ae9a88861c19541b463b5ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70696e706f6e2f6c61726176656c2d6d656469616c6962726172792d75706c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pinpon/laravel-medialibrary-uploader)

An easy-to-use helper to directly upload files from request to your models' media collections

```
use Pinpon\Uploader\MediaUploader

MediaUploader::upload(['image'])->to($model);
```

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

[](#installation)

You can install the package via composer:

```
composer require pinpon/laravel-medialibrary-uploader
```

Usage
-----

[](#usage)

**Warning:** The request file key must match the media collection's name

```
use Pinpon\Uploader\MediaUploader

$model = Model::first();

// Upload from one key
MediaUploader::upload('image')->to($model);

// Upload from multiple keys
MediaUploader::upload(['image', 'banner'])->to($model);

$model->getMedia('image');
$model->getMedia('banner');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/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/Pin-Pon.dev)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

1443d ago

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")[![tuarrep](https://avatars.githubusercontent.com/u/6941014?v=4)](https://github.com/tuarrep "tuarrep (2 commits)")

---

Tags

laravelPinPonsimple-uploader

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pinpon-laravel-medialibrary-uploader/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[spatie/livewire-filepond

Upload files using Filepond in Livewire components

306452.7k3](/packages/spatie-livewire-filepond)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[elegantly/laravel-invoices

Store invoices safely in your Laravel application

23131.8k](/packages/elegantly-laravel-invoices)

PHPackages © 2026

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