PHPackages                             packagesrepo/yii2-mediamanagers - 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. packagesrepo/yii2-mediamanagers

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

packagesrepo/yii2-mediamanagers
===============================

Yii2 Media Manager Module

04PHP

Since Oct 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/packagesrepo/yii2-mediamanagers)[ Packagist](https://packagist.org/packages/packagesrepo/yii2-mediamanagers)[ RSS](/packages/packagesrepo-yii2-mediamanagers/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

Author: Bade lal This module provides a [Media Manager](https://packagesrepo@bitbucket.org/packagesrepo/mediamanagers) integration to your Yii2 application. It is still in its early stages, but feel free to use it, report bugs, and contribute.

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

[](#installation)

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

Either run

```
composer require "packagesrepo/yii2-mediamanagers" "*"

```

or add

```
"packagesrepo/yii2-mediamanagers" : "*"
```

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/' => 'mediamanagers/thumb/thumb',
            // ...
        ],
    ],
    // ...
    'fs' => [
        'class' => 'creocoder\flysystem\LocalFilesystem',
        'path' => '@webroot/upload',
    ],
],
'modules' => [
    // ...
    'mediamanagers' => [
        'class' => 'packagesrepo\yii2\mediamanagers\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 packagesrepo\yii2\mediamanagers\widgets\MediaManagerInput;

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

### MediaManagerModal

[](#mediamanagermodal)

```
use packagesrepo\yii2\mediamanagers\widgets\MediaManagerInputModal;

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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/bb2b62879c06033a1794dfed4d2c0194cecb97f81b7f5fb2b2d75a66a6b861dc?d=identicon)[packagesrepo](/maintainers/packagesrepo)

### Embed Badge

![Health badge](/badges/packagesrepo-yii2-mediamanagers/health.svg)

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

###  Alternatives

[roave/psalm-html-output

Psalm HTML Output

23312.0k1](/packages/roave-psalm-html-output)[flarum/nicknames

Allow users to set nicknames.

10288.4k9](/packages/flarum-nicknames)[cryde/json-text-extractor

Helper that will extract JSON from plain text

128.1k](/packages/cryde-json-text-extractor)

PHPackages © 2026

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