PHPackages                             miserenkov/yii2-imagine - 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. miserenkov/yii2-imagine

Abandoned → [yiisoft/yii2-imagine](/?search=yiisoft%2Fyii2-imagine)ArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

miserenkov/yii2-imagine
=======================

The Imagine integration for the Yii framework

2.1.1.1(9y ago)0187BSD-3-ClausePHP

Since Apr 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/miserenkov/yii2-imagine)[ Packagist](https://packagist.org/packages/miserenkov/yii2-imagine)[ RSS](/packages/miserenkov-yii2-imagine/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (11)Used By (0)

Imagine Extension for Yii 2
===========================

[](#imagine-extension-for-yii-2)

This extension adds most common image functions and also acts as a wrapper to [Imagine](http://imagine.readthedocs.org/)image manipulation library for [Yii framework 2.0](http://www.yiiframework.com).

For license information check the [LICENSE](LICENSE.md)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/734e957dfbc252fec92f7b1289972862d77ea1cbb7e4f9637d773377722a597e/68747470733a2f2f706f7365722e707567782e6f72672f6d69736572656e6b6f762f796969322d696d6167696e652f762f737461626c652e706e67)](https://packagist.org/packages/miserenkov/yii2-imagine)[![Total Downloads](https://camo.githubusercontent.com/aec2195a65fdeb331a48d9be5701809eb55683f51fe4efb8b8b9d64842f2e246/68747470733a2f2f706f7365722e707567782e6f72672f6d69736572656e6b6f762f796969322d696d6167696e652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/miserenkov/yii2-imagine)[![Build Status](https://camo.githubusercontent.com/7e1b0702a2ff600daae3c6a1ab4f14d4da528446c6f7cb4bc9b2d613527f5b77/68747470733a2f2f7472617669732d63692e6f72672f6d69736572656e6b6f762f796969322d696d6167696e652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/miserenkov/yii2-imagine)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist miserenkov/yii2-imagine

```

or add

```
"miserenkov/yii2-imagine": "~2.1.1"
```

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

Usage &amp; Documentation
-------------------------

[](#usage--documentation)

This extension is a wrapper to the [Imagine](http://imagine.readthedocs.org/) and also adds the most commonly used image manipulation methods.

The following example shows how to use this extension:

```
use miserenkov\imagine\Image;

// frame, rotate and save an image
Image::frame('path/to/image.jpg', 5, '666', 0)
    ->rotate(-8)
    ->save('path/to/destination/image.jpg', ['jpeg_quality' => 50]);
```

Note that each `Image` method returns an instance of `\Imagine\Image\ImageInterface`. This means you can make use of the methods included in the `Imagine` library:

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~118 days

Recently: every ~186 days

Total

10

Last Release

3392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2da4989419ba449f8a65c166d33be4472ab6a37d3e55092f17e8ac9eba5b3574?d=identicon)[miserenkov](/maintainers/miserenkov)

---

Top Contributors

[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (19 commits)")[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (16 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (11 commits)")[![Renkas](https://avatars.githubusercontent.com/u/5357180?v=4)](https://github.com/Renkas "Renkas (9 commits)")[![pana1990](https://avatars.githubusercontent.com/u/6630197?v=4)](https://github.com/pana1990 "pana1990 (3 commits)")[![miserenkov](https://avatars.githubusercontent.com/u/12072466?v=4)](https://github.com/miserenkov "miserenkov (2 commits)")[![SDKiller](https://avatars.githubusercontent.com/u/2150916?v=4)](https://github.com/SDKiller "SDKiller (2 commits)")[![klevron](https://avatars.githubusercontent.com/u/4560725?v=4)](https://github.com/klevron "klevron (2 commits)")[![SonicGD](https://avatars.githubusercontent.com/u/1222013?v=4)](https://github.com/SonicGD "SonicGD (1 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (1 commits)")[![HaruAtari](https://avatars.githubusercontent.com/u/3523420?v=4)](https://github.com/HaruAtari "HaruAtari (1 commits)")[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (1 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (1 commits)")[![andku83](https://avatars.githubusercontent.com/u/16827409?v=4)](https://github.com/andku83 "andku83 (1 commits)")

---

Tags

helperimageimagineyii2

### Embed Badge

![Health badge](/badges/miserenkov-yii2-imagine/health.svg)

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

###  Alternatives

[yiisoft/yii2-imagine

The Imagine integration for the Yii framework

2865.5M277](/packages/yiisoft-yii2-imagine)

PHPackages © 2026

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