PHPackages                             maddoger/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. maddoger/yii2-imagecache

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

maddoger/yii2-imagecache
========================

ImageCache extension for Yii2.

v1.2.0(11y ago)0821PHP

Since Nov 15Pushed 11y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (6)Used By (0)

Yii2 ImageCache by maddoger
===========================

[](#yii2-imagecache-by-maddoger)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist maddoger/yii2-imagecache "*"

```

or add

```
"maddoger/yii2-imagecache": "*"

```

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

\#Component:

```
'imageCache' => [
    'class' => 'maddoger\imagecache\ImageCache',
    'generateWithUrl' => false,
    'actionSavesFile' => false,

    //Avatar
    'presets' => [
        '100x100' => [
            'fit' => [
                'width' => 100,
                'height' => 100,
            ],
        ],
        '200x' => [
            'thumbnail' => [
                'width' => 200,
                'height' => 200,
            ],
        ],
    ],
],

```

\#For server generation

\##In controller:

```
public function actions()
    {
        return [
            'imagecache' => [
                'class' => 'maddoger\imagecache\ImageAction',
            ],
        ];
    }

```

\##In configuration:

```
'urlManager' => [
    ...
    'rules' => [
        ...
        'static/ic/' => 'site/imagecache',
        ...
    ],
    ...
],

```

\##.htaccess

```
RewriteEngine On

RedirectMatch 403 /\.
RedirectMatch 403 /\.htaccess$

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/static/ic/*
RewriteRule ^(.*)$  ../index.php [QSA,L]

```

\#Faster generation

\##Standalone php script

Use files from server folder.

For faster generation you may use file in server folder (.htaccess and generator script), or another methods.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

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

Every ~37 days

Total

5

Last Release

4046d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09bde1fb9f0bb0ef7e7b4e6d7d1e346b2c2f1b076bd757ef85722abb37a98000?d=identicon)[maddoger](/maintainers/maddoger)

---

Top Contributors

[![maddoger](https://avatars.githubusercontent.com/u/6214206?v=4)](https://github.com/maddoger "maddoger (14 commits)")

### Embed Badge

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

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

###  Alternatives

[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

1020.8k](/packages/maxmirazh33-yii2-uploadable-cropable-image)

PHPackages © 2026

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