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.2(1mo ago)09MITBladePHP ^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 1mo ago

READMEChangelogDependencies (2)Versions (4)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

41

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

49d 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 (10 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

1536.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[danihidayatx/image-optimizer

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

254.4k](/packages/danihidayatx-image-optimizer)[asgardcms/media-module

Media module for AsgardCMS. Handles the media library.

1130.6k2](/packages/asgardcms-media-module)[justbetter/statamic-image-optimize

Image optimization after upload

1315.2k](/packages/justbetter-statamic-image-optimize)[reliqarts/laravel-guided-image

Simplified and ready image manipulation for Laravel via intervention image.

351.4k](/packages/reliqarts-laravel-guided-image)

PHPackages © 2026

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