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

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

skeeks/yii2-imagine
===================

The Imagine integration for the Yii framework

2.3.3(2y ago)228.1k↓50%2BSD-3-ClausePHP

Since Feb 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/skeeks-semenov/yii2-imagine)[ Packagist](https://packagist.org/packages/skeeks/yii2-imagine)[ Docs](http://www.skeeks.com/)[ RSS](/packages/skeeks-yii2-imagine/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (12)Used By (2)

Yii2-imagine
============

[](#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 skeeks/yii2-imagine "*"

```

or add

```
"skeeks/yii2-imagine": "*"
```

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

> [![skeeks!](https://camo.githubusercontent.com/cae82dcf01ec5dead3fe52f7d6dc919d52b7b060cdaccddb39a7a4c3383a282f/68747470733a2f2f67726176617461722e636f6d2f75736572696d6167652f37343433313133322f31336430346438333231383539333536343432323737306236313665353632322e6a7067)](http://www.skeeks.com)*Web development has never been so fun!*[www.skeeks.com](http://www.skeeks.com)

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.

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

[](#installation-1)

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

Either run

```
php composer.phar require --prefer-dist yiisoft/yii2-imagine "*"

```

or add

```
"yiisoft/yii2-imagine": "*"
```

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 yii\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', ['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

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

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

Recently: every ~290 days

Total

10

Last Release

785d ago

Major Versions

1.0.0 → 2.0.02015-02-15

1.0.1 → 2.3.02021-01-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/785306737dd13e3ea6826dfc04ab29ececa88f560d054ff595d64853cb878219?d=identicon)[skeeks-semenov](/maintainers/skeeks-semenov)

---

Top Contributors

[![skeeks-semenov](https://avatars.githubusercontent.com/u/9209305?v=4)](https://github.com/skeeks-semenov "skeeks-semenov (11 commits)")

---

Tags

helperimageimagineyii2

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-imagine

The Imagine integration for the Yii framework

2865.4M275](/packages/yiisoft-yii2-imagine)

PHPackages © 2026

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