PHPackages                             blytd/media-manager - 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. blytd/media-manager

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

blytd/media-manager
===================

1.0.3(3y ago)061PHP

Since Sep 25Pushed 3y ago1 watchersCompare

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

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

Simple media manager
====================

[](#simple-media-manager)

This package can associate some sorts of media with Eloquent models. It provides some simple APIs to work with.

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

[](#installation)

For install this library do these steps:

- Add this line to require section of the composer.json

```
"blytd/media-manager": "^1.0.0"

```

- And also add this section in the composer.json file:

```
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/alisarmadi/media-manager"
        }
    ],

```

- On the end you should have something like this in your composer.json file:

```
    ...
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/alisarmadi/media-manager"
        }
    ],
    "require": {
        ...
        "blytd/media-manager": "^1.0.0"
    },
    ...

```

- Then add this line to the app.php file in the config directory of your project:

```
    \Blytd\MediaManager\Provider\MediaManagerProvider::class
```

Usage
-----

[](#usage)

For use the library you have to add this routes to your project routes:

```
Route::name('media.')->prefix('media')->group(function (){
   Route::post('/upload',[\Blytd\MediaManager\Http\Controller\MediaController::class, 'upload'])->name('upload');
        Route::delete('/delete/{media_id?}',[\Blytd\MediaManager\Http\Controller\MediaController::class, 'delete'])->name('delete');
});
```

#### Note: Please be careful to wrap these routes in the appropriate middleware to control access to them. Something like this:

[](#note-please-be-careful-to-wrap-these-routes-in-the-appropriate-middleware-to-control-access-to-them-something-like-this)

```
Route::middleware('auth')->group(function (){
    Route::name('media.')->prefix('media')->group(function (){
   Route::post('/upload',[\Blytd\MediaManager\Http\Controller\MediaController::class, 'upload'])->name('upload');
        Route::delete('/delete/{media_id?}',[\Blytd\MediaManager\Http\Controller\MediaController::class, 'delete'])->name('delete');
    });
});
```

For use the library you have two endpoints for upload and delete, you can access those With these routes:

```
    POST {{base_path}}{/api}/media/upload
    PAYLOAD (form-data)
        media: (Selected file)
        model: (Can be one of your model name, it's an optional parameter)
        model_id: (Id of the selected model, it's an optional parameter)
        type: (Type of the file, can be one of (IMAGE,VIDEO,DOC,OTHER) it's an optional parameter)
        extra_data: (Extra data you want to store beside the file, It must be an array. It's an optional parameter)

```

```
    DELETE {{base_path}}{/api}/media/delete/{media_id}
    PAYLOAD
        {
            "path": "original/Team/630ee0ffb111e74b631f62b2_399a44ea-4642-4cda-94f4-3046904d311e.jpeg"
        }
    You must set one of the 'media_id' or 'path' param in this endpoint to delete the desired media.

```

Optional usage
--------------

[](#optional-usage)

You can publish the MediaController with the line below and customize it if necessary.

```
    php artisan vendor:publish --tag=blytd-media-controller

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Every ~7 days

Total

4

Last Release

1307d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/276f7ea9f982cd6b951a53d2eb3b25a441e5c1dad3603a6141188a4723110e6b?d=identicon)[alisarmadi](/maintainers/alisarmadi)

---

Top Contributors

[![alisarmadi](https://avatars.githubusercontent.com/u/12986083?v=4)](https://github.com/alisarmadi "alisarmadi (17 commits)")

### Embed Badge

![Health badge](/badges/blytd-media-manager/health.svg)

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

###  Alternatives

[craftcms/aws-s3

Amazon S3 integration for Craft CMS

631.5M26](/packages/craftcms-aws-s3)[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)[sistemi-etime/flysystem-plugin-aws-s3-v3

AWS S3 plugin for Flysystem.

11154.2k1](/packages/sistemi-etime-flysystem-plugin-aws-s3-v3)[exula/laravel-storage-rados-s3

Extends League Flysystem S3 Adapter to easily point it to a Rados Gateway

1042.4k](/packages/exula-laravel-storage-rados-s3)

PHPackages © 2026

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