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

ActiveLibrary

omnia-digital/media-manager
===========================

A media manager to upload media files to multiple storages or select image from Unsplash, URL

2.0.0(2y ago)6143[1 PRs](https://github.com/omnia-digital/media-manager/pulls)MITPHPPHP ^8.0

Since Mar 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/omnia-digital/media-manager)[ Packagist](https://packagist.org/packages/omnia-digital/media-manager)[ Docs](https://github.com/omnia-digital/media-manager)[ GitHub Sponsors](https://github.com/omnia-digital)[ RSS](/packages/omnia-digital-media-manager/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (8)Used By (0)

Livewire Media Manager
======================

[](#livewire-media-manager)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4f6fc59165941b943d018f80209c90abffd0a1623e8bbb5a96eb3bda5903b7a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d6e69612d6469676974616c2f6d656469612d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omnia-digital/media-manager)[![GitHub Tests Action Status](https://camo.githubusercontent.com/24cd644a018b3f3957f8cd6b599405c258d5456751891330909f684e3108a2aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f6d6e69612d6469676974616c2f6d656469612d6d616e616765722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/omnia-digital/media-manager/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/efa5d0eb79c09af754a8832901978631c0da5d7cb9cdc5fd71996052b634517b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f6d6e69612d6469676974616c2f6d656469612d6d616e616765722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/omnia-digital/media-manager/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/95511953ad2f325334d4f94df913b5cd671496f11f7089277e39ec3aa2089977/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6d6e69612d6469676974616c2f6d656469612d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omnia-digital/media-manager)

A TALL Stack Media Manager to upload media files to multiple storages or select image from Unsplash, URL

    CleanShot.2022-03-22.at.22.24.51.mp4    Installation
------------

[](#installation)

You can install the package via composer:

```
composer require omnia-digital/media-manager
```

Add Tailwind CSS classes in `tailwind.config.js`:

```
module.exports = {
    content: [
        ...
        './vendor/omnia-digital/media-manager/resources/views/**/*.blade.php',
    ]
};
```

You can publish the config file with:

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

This is the contents of the published config file:

```
return [
    'storage'    => [
        'disk' => 'public'
    ],

    'image' => [
        'allowed_file_types' => ['png', 'jpg', 'jpeg', 'gif'],

        /*
         * Max file size in KB.
         */
        'max_file_size'      => 5000,
    ],

    'unsplash' => [
        'access_key' => env('UNSPLASH_ACCESS_KEY'),

        'utm_source' => env('APP_NAME')
    ]
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="media-manager-views"
```

How to open Media Manager modal
-------------------------------

[](#how-to-open-media-manager-modal)

### Via Alpinejs

[](#via-alpinejs)

```
this.$wire.dispatchTo(
    'media-manager',
    'media-manager:show',
    {
        id: 'featured-image',
        file: null,
        metadata: null
    }
);
```

### From Livewire Component

[](#from-livewire-component)

```
use Omnia\MediaManager\WithMediaManager;

...

public function showUploader()
{
    $this->showFileManager('featured-image', $file, $metadata);
}
```

You can pass file URL as 2nd parameter so the Media Manager will show that file by default.

Remove File from Media Manager
------------------------------

[](#remove-file-from-media-manager)

```
use Omnia\MediaManager\WithMediaManager;

...

public function removeFeaturedImage()
{
    $this->image = null;

    $this->removeFileFromMediaManager();
}
```

Events
------

[](#events)

**File Selected**

When a media file is selected, it will dispatch an event, called `media-manager:file-selected`

You can listen on that event by using AlpineJS like this:

```
x-on:media-manager:file-selected.window="setImage"
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Josh Torres](https://github.com/joshtorres)
- [phucle](https://github.com/phuclh)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Every ~174 days

Total

4

Last Release

1005d ago

Major Versions

0.0.2 → 1.0.02023-07-21

1.0.0 → 2.0.02023-08-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/58eaaf3ed33b7bae901022c967d0be524f1ad85c370296212307b0dd4fa4fc8e?d=identicon)[omniadigital](/maintainers/omniadigital)

---

Top Contributors

[![phuclh](https://avatars.githubusercontent.com/u/6707194?v=4)](https://github.com/phuclh "phuclh (12 commits)")[![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)")[![joshtorres](https://avatars.githubusercontent.com/u/5092957?v=4)](https://github.com/joshtorres "joshtorres (6 commits)")

---

Tags

laravelomniaomnia-digitalMedia Manager

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4861.2M8](/packages/leandrocfe-filament-apex-charts)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[spatie/livewire-filepond

Upload files using Filepond in Livewire components

306452.7k3](/packages/spatie-livewire-filepond)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[codebar-ag/laravel-filament-json-field

A Laravel Filament JSON Field integration with CodeMirror support

1124.1k](/packages/codebar-ag-laravel-filament-json-field)

PHPackages © 2026

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