PHPackages                             letyii/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. [Caching](/categories/caching)
4. /
5. letyii/yii2-imagecache

ActiveLibrary[Caching](/categories/caching)

letyii/yii2-imagecache
======================

Image cache for yii2

v1.0.1(10y ago)71.6k5[1 PRs](https://github.com/letyii/yii2-imagecache/pulls)1MITPHPPHP &gt;=5.4

Since Apr 26Pushed 9y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (1)

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

[](#yii2-imagecache)

Features
--------

[](#features)

- Image resize on demand
- Imagick support
- GD support
- Amazon S3 support

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

[](#installation)

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

Either run

```
php composer.phar require "letyii/yii2-imagecache" "*"

```

or add

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

to the require section of your application's `composer.json` file.

Config
------

[](#config)

```
'components' => [
    ...
    'imageCache' => [
        'class' => 'letyii\imagecache\imageCache',
        'cachePath' => '@app/uploads/cache',
        'cacheUrl' => '@web/uploads/cache',
    ],
]
```

Usage Example
-------------

[](#usage-example)

```
echo Yii::$app->imageCache->imgSrc('@app/uploads/test.jpg', 'x200');
// Output: /your-app/uploads/cache/x200/.../test.jpg

echo Yii::$app->imageCache->img('@app/uploads/test.jpg', '100x');
// Output:

echo Yii::$app->imageCache->img('@app/uploads/test.jpg', '100x150', ['class'=>'test', 'alt' => 'Test image']);
// Output:
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~127 days

Total

2

Last Release

3913d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ffd371a8938ce4a99cb7f98a1ad3f31d8cfe51b1935d08d4fd6e6da06673b55?d=identicon)[nguago](/maintainers/nguago)

---

Top Contributors

[![nguago](https://avatars.githubusercontent.com/u/328687?v=4)](https://github.com/nguago "nguago (11 commits)")[![maibaduy](https://avatars.githubusercontent.com/u/1654470?v=4)](https://github.com/maibaduy "maibaduy (2 commits)")

---

Tags

thumbnailimagecacheyii2

### Embed Badge

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

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

###  Alternatives

[devgroup/yii2-tag-dependency-helper

Helper for unifying cache tag names with invalidation support in yii2

34507.4k7](/packages/devgroup-yii2-tag-dependency-helper)[undefinedor/yii2-cached-active-record

The cached activeRecord for the Yii2 framework

102.6k](/packages/undefinedor-yii2-cached-active-record)

PHPackages © 2026

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