PHPackages                             webllc/yii2-image-optimizer - 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. webllc/yii2-image-optimizer

ActiveYii2-extension[Image &amp; Media](/categories/media)

webllc/yii2-image-optimizer
===========================

The image optimizer integration for the Yii framework

0.3(6y ago)07ISCPHPPHP ^7.1

Since Mar 14Pushed 6y agoCompare

[ Source](https://github.com/webllc/yii2-image-optimizer)[ Packagist](https://packagist.org/packages/webllc/yii2-image-optimizer)[ RSS](/packages/webllc-yii2-image-optimizer/feed)WikiDiscussions master Synced 5d ago

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

Yii2 Image Optimizer
====================

[](#yii2-image-optimizer)

A Yii2 helper for optimizing image using [webllc/image-optimizer](https://github.com/webllc/image-optimizer) library.

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

[](#installation)

1. Run the [Composer](http://getcomposer.org/download/) command to install the latest version:

```
composer require webllc/yii2-image-optimizer
```

Usage
-----

[](#usage)

From here, you could either use it directly like this:

```
\webllc\yii2\ImageOptimizer\Optimizer::optimize('@app/image.png');
```

And like this:

```
use \webllc\yii2\ImageOptimizer\Optimizer;

Optimizer::optimize('@app/image.png');
```

Or, define it as Yii2 component. At your config:

```
'components' => [
  'optimizer' => [
    'class' => 'webllc\yii2\ImageOptimizer\Optimizer',
  ],
],
```

Then use it like this:

```
Yii::$app->optimizer::optimize('@app/image.png');
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

2254d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1879413?v=4)[Denis Didenko](/maintainers/Diden05)[@Diden05](https://github.com/Diden05)

---

Top Contributors

[![bentinata](https://avatars.githubusercontent.com/u/3183661?v=4)](https://github.com/bentinata "bentinata (2 commits)")

---

Tags

imagepngjpgyii2optimizerpngquantoptipngjpegoptim

### Embed Badge

![Health badge](/badges/webllc-yii2-image-optimizer/health.svg)

```
[![Health](https://phpackages.com/badges/webllc-yii2-image-optimizer/health.svg)](https://phpackages.com/packages/webllc-yii2-image-optimizer)
```

###  Alternatives

[ps/image-optimizer

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.

9341.7M25](/packages/ps-image-optimizer)[jkphl/iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG &amp; PNG, single icons and / or CSS sprites) with support for image optimization and Sass output

4869.0k](/packages/jkphl-iconizr)[typisttech/image-optimize-command

Easily optimize images using WP CLI

1722.0k](/packages/typisttech-image-optimize-command)[vajiral/php-image-compare

A light weight PHP class that can compare two (jpg/png) images to find if they are similar.

1797.9k1](/packages/vajiral-php-image-compare)[kinglozzer/tinypng

TinyPNG PHP API

1292.1k2](/packages/kinglozzer-tinypng)[tihiy-production/php-image-compressor

ImageCompressor - this is an easy way to compress images on the fly

243.8k](/packages/tihiy-production-php-image-compressor)

PHPackages © 2026

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