PHPackages                             happyproff/yii-easyimages - 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. happyproff/yii-easyimages

AbandonedLibrary[Image &amp; Media](/categories/media)

happyproff/yii-easyimages
=========================

Manage your images in AR is easy.

0.0.7(11y ago)1172MITPHPPHP &gt;=5.4

Since Sep 22Pushed 11y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

yii-easyimages
==============

[](#yii-easyimages)

[![License](https://camo.githubusercontent.com/558c941b4cda166f2e90560cb731a25d7c9ef1decf2c7c4f8aee9f6b8c18db63/68747470733a2f2f706f7365722e707567782e6f72672f686170707970726f66662f7969692d65617379696d616765732f6c6963656e73652e737667)](https://packagist.org/packages/happyproff/yii-easyimages)

Простая работа с изображениями для моделей. Автоматическая загрузка, генерация нужных размеров, удаление.

Использование
-------------

[](#использование)

Добавить в `composer.json` зависимость:

```
"happyproff/yii-easyimages": "*@dev"
```

Зарегистрировать компонент приложения:

```
'components' => [
    ...,
    'easyImages' => [
        'class' => 'happyproff\YiiEasyImages\EasyImages',
    ],
    ...
]
```

В базовом AR классе или в конкретной модели использовать трейт и вызвать его метод в beforeSave():

```
class MCategory extends ActiveRecord {
    use happyproff\YiiEasyImages\TEasyImage;
    ...
```

```
public function beforeSave () {
    if (!parent::beforeSave()) return false;

    if (method_exists($this, 'handleImages')) {
        $this->handleImages();
    }

    return true;
}
```

Определить атрибуты, которые будут использоваться для работы с изображениями и их пресеты:

```
public function images () {
    return [
        'image' => [
            self::IMAGE_ORIGINAL => ['width' => 1920, 'height' => 1080, 'enabled' => false],
            self::IMAGE_FULL => ['width' => 960, 'height' => 720, 'quality' => 100],
            self::IMAGE_LIST => ['width' => 146, 'height' => 160, 'inset' => false,],
            self::IMAGE_ITEM => ['width' => 300, 'height' => 999],
        ],
    ];
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

7

Last Release

4109d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66590a3783d930fd1d36bfdd1c0c87e9ec23226e276e6b06ea05c2a202dff6e5?d=identicon)[happyproff](/maintainers/happyproff)

---

Top Contributors

[![happyproff](https://avatars.githubusercontent.com/u/763271?v=4)](https://github.com/happyproff "happyproff (19 commits)")

### Embed Badge

![Health badge](/badges/happyproff-yii-easyimages/health.svg)

```
[![Health](https://phpackages.com/badges/happyproff-yii-easyimages/health.svg)](https://phpackages.com/packages/happyproff-yii-easyimages)
```

###  Alternatives

[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k38.3M217](/packages/liip-imagine-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[media-alchemyst/media-alchemyst

An Object Oriented wrapper for easy multimedia conversion, based on Imagine, FFMpeg, SwfTools, Unoconv and other libs

65216.4k1](/packages/media-alchemyst-media-alchemyst)[contao/image

Contao image library

131.7M9](/packages/contao-image)[ambroisemaupate/intervention-request

A customizable Intervention Image wrapper to use image simple re-sampling features over urls and a configurable cache.

4242.4k2](/packages/ambroisemaupate-intervention-request)

PHPackages © 2026

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