PHPackages                             e200/mediavel - 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. e200/mediavel

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

e200/mediavel
=============

Laravel media library package

34[3 PRs](https://github.com/e200/mediavel/pulls)PHP

Since Dec 4Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

Mediavel
========

[](#mediavel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7b9aa58f2ee6e2061ffe9cc0ea720273d4a4c7a35a8a38da761771371f78e0d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f653230302f6d6564696176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/e200/mediavel)[![Total Downloads](https://camo.githubusercontent.com/40a8a3ab155269b438ac40c658c8fbcd8a339d420437641abeb4da9ba0c8c1bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f653230302f6d6564696176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/e200/mediavel)[![Build Status](https://camo.githubusercontent.com/dcd8b211bc0be02d04e35a4cd41f17ea95f33e27b746d59d067b2c56ff5c9376/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f653230302f6d6564696176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/e200/mediavel)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

A media library handler for Laravel.

Right now, it only supports upload images and generate thumbnails from them.

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

[](#installation)

Via Composer

```
$ composer require e200/mediavel
```

Usage
-----

[](#usage)

```
namespace App\Http\Controllers;

use Illuminate\Routing\Controller;
use e200\Mediavel\Facades\MediaLibrary;

class ImageController extends Controller
{
    public function upload(Request $request)
    {
        $uploadedImage = $request->image;

        $media = $mediaLibrary
          ->add($uploadedImage)           // Store the image
          ->preserveOriginal()            // Do not touch the original file
          ->resize('small', [75, 75])     // Creates a thumbnail (75x75) derived from the original image
          ->resize('medium', [150, 150])  // Creates a thumbnail (150x150)
          ->resize('large', [1024, 300]); // Creates a thumbnail (1024x300);

        $media->id;            // 1
        $media->relative_path; // /images/2018/12/sl290s8xq0is9wqjk.jpg
        $media->url;           // http://localhost:8000/images/2019/06/5cf6976f20dfb.jpg

        $thumbs = $media->thumbs();

        $thumbs['small']->path;  // /images/2018/12/5cf6976f20dfb-75x75.jpg
        $thumbs['medium']->path; // /images/2018/12/5cf6976f20dfb-150x150.jpg
        $thumbs['large']->path;  // /images/2018/12/5cf6976f20dfb-1024x300.jpg
    }
}
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Eleandro Duzentos](https://github.com/e200)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.4% 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.

### Community

Maintainers

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

---

Top Contributors

[![e200](https://avatars.githubusercontent.com/u/20504726?v=4)](https://github.com/e200 "e200 (168 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravelmedia-library

### Embed Badge

![Health badge](/badges/e200-mediavel/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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