PHPackages                             xj/yii2-kohanaimage - 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. xj/yii2-kohanaimage

ActiveLibrary

xj/yii2-kohanaimage
===================

yii2-kohanaimage

4.0.3(11y ago)0582BSD-3-ClausePHP

Since Mar 3Pushed 11y ago2 watchersCompare

[ Source](https://github.com/xjflyttp/yii2-kohanaimage)[ Packagist](https://packagist.org/packages/xj/yii2-kohanaimage)[ RSS](/packages/xj-yii2-kohanaimage/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

yii2-kohanaimage
================

[](#yii2-kohanaimage)

composer.json
=============

[](#composerjson)

```
"require": {
    "yii2-kohanaimage": "*"
},

```

### Example

[](#example)

```
header("Content-Type: image/jpg");
$pathToFile = 'f:/1.jpg';
$pathToFile2 = 'f:/2.jpg';
echo Image::load($pathToFile)->render('png');
echo Image::load($pathToFile)->crop(100, 100)->render();
echo Image::load($pathToFile)->resize(100, 100, Image::INVERSE)->render();
echo Image::load($pathToFile)->resize(100, null)->render();
echo Image::load($pathToFile)->resize(null, 100)->render();
echo Image::load($pathToFile)->rotate(45)->render();
echo Image::load($pathToFile)->resize(400, null)->sharpen(20)->render();
echo Image::load($pathToFile)->rotate(45)->watermark(Image::load($pathToFile2))->render();

```

### Properties

[](#properties)

```
Image::load($pathToFile)->width;
Image::load($pathToFile)->height;
Image::load($pathToFile)->type;
Image::load($pathToFile)->mime;

```

### Methods

[](#methods)

```
background()
crop()
factory()
flip()
reflection()
render()
resize()
rotate()
save()
sharpen()
watermark()

```

### Ref

[](#ref)

```
http://kohanaframework.org/3.2/guide/api/Image

```

###  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

Maturity66

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

Total

4

Last Release

4074d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9f04ccc1ccda3af80975323425ff7d5f7d142603f1ad05df6558ffa63256f8d?d=identicon)[xjflyttp](/maintainers/xjflyttp)

---

Top Contributors

[![xjflyttp](https://avatars.githubusercontent.com/u/128428?v=4)](https://github.com/xjflyttp "xjflyttp (8 commits)")

### Embed Badge

![Health badge](/badges/xj-yii2-kohanaimage/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)

PHPackages © 2026

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