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

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

mlcsthor/yii2-media-manager
===========================

Yii2 media manager module

1.0(7y ago)168PHP

Since Jun 14Pushed 7y ago1 watchersCompare

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

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

Yii2 Media Manager Module
=========================

[](#yii2-media-manager-module)

This module provides a [Media Manager](https://github.com/iutbay/mm) integration to your Yii2 application. It is still in its early stages, but feel free to use it, report bugs, and contribute.

[![screenshot](https://raw.githubusercontent.com/iutbay/mm/master/doc/images/mm01.jpg)](https://raw.githubusercontent.com/iutbay/mm/master/doc/images/mm01.jpg)

Demo
----

[](#demo)

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

[](#installation)

The preferred way to install this module is through [composer](http://getcomposer.org/download/).

Either run

```
composer require "mlcsthor/yii2-media-manager" "*"

```

or add

```
"mlcsthor/yii2-media-manager" : "*"
```

to the require section of your application's `composer.json` file.

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

[](#configuration)

Add the following lines in your application configuration :

```
'components' => [
    // ...
    'urlManager' => [
        'enablePrettyUrl' => true,
        'showScriptName' => false,
        'rules' => [
            'thumbs/' => 'mm/thumb/thumb',
            // ...
        ],
    ],
    // ...
    'fs' => [
        'class' => 'creocoder\flysystem\LocalFilesystem',
        'path' => '@webroot/upload',
    ],
],
'modules' => [
    // ...
    'mm' => [
        'class' => 'mlcsthor\mediamanager\Module',
    ],
],
```

### About Flysystem

[](#about-flysystem)

This module use [Flysystem](https://github.com/thephpleague/flysystem) (via [creocoder/yii2-flysystem](https://github.com/creocoder/yii2-flysystem)), a *filesystem abstraction which allows you to easily swap out a local filesystem for a remote one*.

You can use a local filesystem as described previously, you should then create an `upload` folder in the web folder of your Yii2 application. You can also use any *adapter* provided by Flysystem, take a look at [Flysystem](http://flysystem.thephpleague.com) and [creocoder/yii2-flysystem](https://github.com/creocoder/yii2-flysystem).

WARNING : Actually, this module has only been tested with *local*, *ftp* and *sftp* adapters.

### About image thumbnails

[](#about-image-thumbnails)

This module use [Imagine](https://github.com/avalanche123/Imagine) (via [yii2-imagine](https://github.com/yiisoft/yii2-imagine)) to generate image thumbnails *on demand*, you should create a `thumbs` folder in the web folder of your application.

Usage
-----

[](#usage)

### MediaManagerInput

[](#mediamanagerinput)

```
use mlcsthor\mediamanager\widgets\MediaManagerInput;

echo MediaManagerInput::widget([
    'name' => 'test', // input name
    'multiple' => false,
    'clientOptions' => [
        'api' => [
            'listUrl' => Url::to(['/mm/api/list']),
            // 'uploadUrl' => Url::to(['/mm/api/upload']),
            // 'downloadUrl' => Url::to(['/mm/api/download']),
            // 'deleteUrl' => Url::to(['/mm/api/delete'])
        ],
    ],
]);
```

### MediaManagerModal

[](#mediamanagermodal)

```
use mlcsthor\mediamanager\widgets\MediaManagerInputModal;

echo MediaManagerInputModal::widget([
    'name' => 'test', // input name
    'clientOptions' => [
        'api' => [
            'listUrl' => Url::to(['/mm/api/list']),
            // 'uploadUrl' => Url::to(['/mm/api/upload']),
            // 'downloadUrl' => Url::to(['/mm/api/download']),
            // 'deleteUrl' => Url::to(['/mm/api/delete'])
        ],
    ],
]);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Unknown

Total

1

Last Release

2889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23baf3cd6ccc62a5c83f3df8909884da6b46e765f6a2dfb297426a32c9f8db50?d=identicon)[mlcsthor](/maintainers/mlcsthor)

---

Top Contributors

[![klevron](https://avatars.githubusercontent.com/u/4560725?v=4)](https://github.com/klevron "klevron (25 commits)")

### Embed Badge

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

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

###  Alternatives

[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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