PHPackages                             yiimaker/yii2-imagable - 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. yiimaker/yii2-imagable

ActiveBsd-3-clause[Image &amp; Media](/categories/media)

yiimaker/yii2-imagable
======================

Image saving extension for yii2

1.0.1(9y ago)117[4 issues](https://github.com/yiimaker/yii2-imagable/issues)PHP

Since Dec 4Pushed 9y ago2 watchersCompare

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

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

\#Instalation

```
php composer.phar require yiimaker/yii2-imagable

```

or add

```
"yiimaker/yii2-imagable": "*"
```

to the `require` section of your composer.json. #Confiugation After extension is installed you need to setup imagable application component:

```
'imagable' => [
    'class' => 'ymaker\imagable\Imagable',
    'imageClass' => 'ymaker\imagable\instances\CreateImageImagine',
    'categories' => [
        'origin' => false,
        'category' => [
            'galery' => [
                'origin' => true,
            ],
            'galery/more' => [
                'origin' => false,
            ],
            'avatars' => [
                'size' => [
                    'big' => [
                        'width' => 1000,
                        'height' => 500,
                    ]
                ]
            ]
        ]
    ]
    ...
```

\#Usage

\###Create image

```
$imageName = \Yii::$app->imagable->create('avatars', 'pathToImage');
// Or
$imageName = \Yii::$app->imagable->createMultiply(['avatars', 'galery/more'], 'pathToImage');
```

\###Get Image

```
$fullPathToImage = \Yii::$app->imagable->get('avatars', 'big', $imageName);
```

\###Delete Image

```
$isDeleted = \Yii::$app->imagable->delete('avatars', $imageName);
```

\###Data provider

```
//To action
/** @var Imagable $image */
$imagable = \Yii::$app->imagable;
$imagable->dataProvider = [
    'key' => $data
];
//...

//To class
class ImageClass extends Object implements CreateImageInterface
{
    public $dataProvider;

    public function init()
    {
        parent::init(); // TODO: Change the autogenerated stub
        echo $this->dataProvider['key'];
    }

    //...
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~35 days

Total

2

Last Release

3407d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81dbf9eb881773e58a5472007499612c6e0c93007a75336688a1a21b9630dc1e?d=identicon)[YiiMaker](/maintainers/YiiMaker)

---

Top Contributors

[![trabem](https://avatars.githubusercontent.com/u/3384909?v=4)](https://github.com/trabem "trabem (4 commits)")[![greeflas](https://avatars.githubusercontent.com/u/17636915?v=4)](https://github.com/greeflas "greeflas (1 commits)")

---

Tags

gdimageimagemagickyii2-extensionthumbnailimageyii2save

### Embed Badge

![Health badge](/badges/yiimaker-yii2-imagable/health.svg)

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

###  Alternatives

[sadovojav/yii2-image-thumbnail

Yii2 image thumbnail component

2142.1k](/packages/sadovojav-yii2-image-thumbnail)[trntv/yii2-glide

Yii2 Glide Extension

41269.5k9](/packages/trntv-yii2-glide)[noam148/yii2-image-resize

A Yii2 component for resizing images (on the fly)

1144.6k6](/packages/noam148-yii2-image-resize)[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

1020.8k](/packages/maxmirazh33-yii2-uploadable-cropable-image)

PHPackages © 2026

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