PHPackages                             iutbay/yii2-mm - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. iutbay/yii2-mm

AbandonedArchivedYii2-module[Utility &amp; Helpers](/categories/utility)

iutbay/yii2-mm
==============

Yii2 Media Manager Module

131.3k8[6 issues](https://github.com/iutbay/yii2-mm/issues)PHP

Since May 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/iutbay/yii2-mm)[ Packagist](https://packagist.org/packages/iutbay/yii2-mm)[ RSS](/packages/iutbay-yii2-mm/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)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 "iutbay/yii2-mm" "*"

```

or add

```
"iutbay/yii2-mm" : "*"
```

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' => 'iutbay\yii2\mm\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 iutbay\yii2\mm\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']),
        ],
    ],
]);
```

### MediaManagerModal

[](#mediamanagermodal)

```
use iutbay\yii2\mm\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']),
        ],
    ],
]);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/273e8d8c3b73681916b6e80e2021f774dbdb4054d2ea2d0744a91baa99f6999b?d=identicon)[iutbay](/maintainers/iutbay)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/iutbay-yii2-mm/health.svg)

```
[![Health](https://phpackages.com/badges/iutbay-yii2-mm/health.svg)](https://phpackages.com/packages/iutbay-yii2-mm)
```

###  Alternatives

[php-stubs/generator

Generate stubs from any PHP code for IDE completion and static analysis.

80318.6k61](/packages/php-stubs-generator)[itwmw/color-difference

Color difference：Din99,CIE76,CIE1994,CIEDE2000,CMC l:c

178.9k](/packages/itwmw-color-difference)[dcblogdev/laravel-companies-house

A Laravel Companies House package

1016.5k](/packages/dcblogdev-laravel-companies-house)

PHPackages © 2026

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