PHPackages                             tasmir/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. [Image &amp; Media](/categories/media)
4. /
5. tasmir/media-manager

ActiveLibrary[Image &amp; Media](/categories/media)

tasmir/media-manager
====================

A premium media manager for Laravel

v1.0.7(1mo ago)033MITBladePHP ^8.2 || ^8.3 || ^8.4 || ^8.5

Since Jan 26Pushed 1mo agoCompare

[ Source](https://github.com/tasmir/media-manager)[ Packagist](https://packagist.org/packages/tasmir/media-manager)[ RSS](/packages/tasmir-media-manager/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (9)Used By (0)

Tasmir Media Manager
====================

[](#tasmir-media-manager)

A powerful, standalone, and customizable Media Manager for Laravel applications. This package provides a seamless way to manage uploads, browse media, and select files via a beautiful AJAX-powered interface.

Features
--------

[](#features)

- 🚀 **Asynchronous Uploads**: Drag-and-drop or select files for instant upload with progress bars.
- 🖼️ **Media Picker Component**: Easy-to-use Blade component for single or multiple file selection.
- 🎨 **Standalone CSS/JS**: Works even without Tailwind CSS; assets are minified and easy to publish.
- ⚙️ **Highly Configurable**: Customize upload paths, image optimization, and caching.
- 📝 **CKEditor Integration**: Built-in support for image uploads from rich text editors.
- 🗑️ **Soft Deletes**: Built-in trash management for media files.
- 🔗 **Unique Slugs**: Automatic collision detection and unique slug generation.
- ☁️ **WebP Conversion**: Optional automatic conversion of images to WebP for optimization.
- ⚡ **Media Caching**: Built-in support for browser-side media caching.

---

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

[](#installation)

Then register the service provider in `bootstrap/providers.php`:

```
return [
    App\Providers\AppServiceProvider::class,
    Tasmir\MediaManager\MediaManagerServiceProvider::class, // Add this
];
```

Run the migrations:

```
php artisan migrate
```

---

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=media-manager-config
```

The config file (`config/media-manager.php`) allows you to customize:

- `assets`: Paths to CSS/JS files.
- `upload_path`: Where files are stored (default: `media`).
- `active_tailwindcss`: Set to `false` to load the standalone CSS file.
- `enable_webp_convert`: Toggle WebP conversion (default: `true`).
- `image_quality`: Default quality for image encoding (default: `80`).
- `media_cache`: Array containing `enable` (bool) and `expiry` (int).
- `max_file_size`: Maximum upload size in MB (default: `5`).
- `button_class` &amp; `button_text`: Default styling for the picker button.

---

Assets Management
-----------------

[](#assets-management)

Publish the CSS and JS assets:

```
php artisan vendor:publish --tag=media-manager-assets
```

Include the scripts in your main layout (usually before ``):

```
@include('media-manager::partials.manager-scripts')
```

---

Usage
-----

[](#usage)

### Blade Component

[](#blade-component)

The easiest way to use the media manager is via the `` component.

**Single Selection (Returns ID):**

```

```

**Multiple Selection (Returns JSON Array of IDs):**

```

```

**Multiple Selection (Returns Comma-Separated String of IDs):**

```

```

**Custom Design:**

```

```

### Manual Trigger (JavaScript)

[](#manual-trigger-javascript)

You can trigger the media manager manually from any element:

```
MediaManager.open({
    type: 'single', // 'single' or 'multiple'
    targetInput: 'my-input-id',
    targetPreview: 'my-preview-container-id',
    onSelect: function(value, items) {
        console.log('Selected value:', value);
        console.log('Selected items:', items);
    }
});
```

---

CKEditor Integration
--------------------

[](#ckeditor-integration)

The package includes a route for CKEditor image uploads. Set your CKEditor `uploadUrl` to: `{{ route('ck.image.upload') }}`

---

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance91

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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 ~16 days

Recently: every ~11 days

Total

8

Last Release

42d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.0.2PHP ^8.2 || ^8.3 || ^8.4 || ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/67b661104aac762e04093995cba4c76ef5749be1d336d7150d8c4a8e526174bb?d=identicon)[tasmir](/maintainers/tasmir)

---

Top Contributors

[![tasmir](https://avatars.githubusercontent.com/u/25658870?v=4)](https://github.com/tasmir "tasmir (11 commits)")

### Embed Badge

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

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M181](/packages/intervention-image-laravel)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[laravel-at/laravel-image-sanitize

A small but handy package to prevent malicious code execution coming into your application through uploaded image files.

33866.8k](/packages/laravel-at-laravel-image-sanitize)[code16/sharp

Laravel Content Management Framework

79164.7k8](/packages/code16-sharp)[intervention/image-driver-vips

libvips driver for Intervention Image

48177.4k11](/packages/intervention-image-driver-vips)[danihidayatx/image-optimizer

Optimize your Filament images before they reach your database. Forked from joshembling/image-optimizer for Filament v4 &amp; v5 support.

3218.1k](/packages/danihidayatx-image-optimizer)

PHPackages © 2026

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