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

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

kmergen/yii2-media
==================

A Yii2 Media management extension

1214PHP

Since Jul 2Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii 2 Media
===========

[](#yii-2-media)

Yii2 extension to provide media file management with model fileupload Uploaded files managed all in a database table.

The preferred way to install this extension is through [composer](https://getcomposer.org/).

Either run

```
composer require "kmergen/yii2-media: "*"
```

or add

```
"kmergen/yii2-media": "*",

```

to the `require` section of your `composer.json` file.

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

[](#installation)

### 1. Run Migrations

[](#1-run-migrations)

Run `$ yii migrate --migrationPath=@vendor/kmergen/yii2-media/migrations`

### 2. Configuration

[](#2-configuration)

In your configuration file set the following:

```
'bootstrap' => [
    'kmergen\media\Bootstrap',
    ...
],
'modules' => [
    'media' => [
        'class' => 'kmergen\media\Module'
    ],
    ...
]
```

### 3. Image component

[](#3-image-component)

```
'components' => [
    'image' => [
        'class' => 'kmergen\media\components\Image'
    ],
    ...
]
```

Now you can everywhere in your application e.g. get a thumb with "Yii::$app-&gt;image-&gt;thumb('path/to/original/image', '$thumbStyle')".

### 4. Upload files with integrated dropzone widget

[](#4-upload-files-with-integrated-dropzone-widget)

> Note: This extension is under development. Use it not in production.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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/1abad4359cfb0942018dcd3e28802c279d72ec3fa80148c4aad6eb2b76bb602c?d=identicon)[kmergen](/maintainers/kmergen)

---

Top Contributors

[![kmergen](https://avatars.githubusercontent.com/u/1640101?v=4)](https://github.com/kmergen "kmergen (120 commits)")

### Embed Badge

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

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

###  Alternatives

[symplify/php-config-printer

Print Symfony services array with configuration to to plain PHP file format thanks to this simple php-parser wrapper

322.3M](/packages/symplify-php-config-printer)[log1x/laravel-webfonts

Download, install, and preload over 1500 Google fonts locally in your Laravel project

14083.5k1](/packages/log1x-laravel-webfonts)[ericlagarda/nova-text-card

A custom card for Laravel Nova to show Text in cards with some good options

20388.6k2](/packages/ericlagarda-nova-text-card)[abdelhamiderrahmouni/filament-monaco-editor

A monaco editor form field for filamentphp.

18182.2k](/packages/abdelhamiderrahmouni-filament-monaco-editor)[igorescobar/jquery-mask-plugin

A jQuery Plugin to make masks on form fields and html elements.

11258.2k4](/packages/igorescobar-jquery-mask-plugin)[carloswph/linguistics

Linguistics and language tools in PHP.

101.0k](/packages/carloswph-linguistics)

PHPackages © 2026

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