PHPackages                             mirocow/yii2-imagecache - 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. [Image &amp; Media](/categories/media)
4. /
5. mirocow/yii2-imagecache

ActiveYii2-extension[Image &amp; Media](/categories/media)

mirocow/yii2-imagecache
=======================

Yii2 imagecache extension

213PHP

Since Aug 14Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-imagecache
===============

[](#yii2-imagecache)

Install
=======

[](#install)

```
$ composer require --prefer-dist mirocow/yii2-imagecache
```

Configuration
=============

[](#configuration)

Nginx
-----

[](#nginx)

```
server {
   location ~ /images/\w+/.*?\.(png|jpg|jpeg|gif) {
       # Redirect everything that isn't a real file to index.php
       try_files $uri $uri/ /index.php$is_args$args;
   }
}

```

Yii2 config
-----------

[](#yii2-config)

```
return [
    'components' => [
        'urlManager' => [
            'baseUrl' => 'http://site.com',
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            //'cache' => 'cache',
            'rules' => [
                'GET /images//' => 'mirocow/imagecache',
            ],
        ],
        'image' => [
            'class' => 'mirocow\imagecache\components\Image',
            'presets' => [
		        '200x200' => [
		            'cachePath'=>'@webroot/images/200x200',
		            'actions'=>[
	                'image_x' => 200,
	                'image_y' => 200,
	                'image_ratio_crop' => true,
	                'image_resize' => true,
	                //'image_convert' => 'png',
	            ],
            ],
        ],
    ],
    'modules' => [
        'imagecache' => [
            'class' => 'mirocow\imagecache\Module',
        ],
    ],
];
```

### Presets

[](#presets)

### Libraries

[](#libraries)

- [https://www.verot.net/php\_class\_upload\_samples.htm](https://www.verot.net/php_class_upload_samples.htm) - has handler
-  - has handler
-
-
-
-
-
-
-  - has handler
-

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

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

---

Top Contributors

[![Mirocow](https://avatars.githubusercontent.com/u/376396?v=4)](https://github.com/Mirocow "Mirocow (45 commits)")

### Embed Badge

![Health badge](/badges/mirocow-yii2-imagecache/health.svg)

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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