PHPackages                             algsupport/yii2-glide - 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. algsupport/yii2-glide

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

algsupport/yii2-glide
=====================

Yii2 Glide Extension

1.2.5(4y ago)0113BSD-3-ClausePHPPHP &gt;=8.0

Since Sep 21Pushed 4y agoCompare

[ Source](https://github.com/algsupport/yii2-glide)[ Packagist](https://packagist.org/packages/algsupport/yii2-glide)[ RSS](/packages/algsupport-yii2-glide/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Yii2 Glide
==========

[](#yii2-glide)

Yii2 Glide integration.

> Glide is a wonderfully easy on-demand image manipulation library written in PHP.

Before you start read [Glide documentation](http://glide.thephpleague.com/) to understand what we are doing

Demo
----

[](#demo)

Since this package was created as a part of [yii2-starter-kit](https://github.com/trntv/yii2-starter-kit) it's demo can be found in starter kit demo.

Contributing
------------

[](#contributing)

You can contribute anything you found useful in any convenient way. Any help appreciated.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist trntv/yii2-glide

```

or add

```
"trntv/yii2-glide": "^1.0"

```

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

Usage
-----

[](#usage)

Add glide configuration:

```
'components' => [
    ...
    'glide' => [
        'class' => 'trntv\glide\components\Glide',
        'sourcePath' => '@app/web/uploads',
        'cachePath' => '@runtime/glide',
        'signKey' => '' // "false" if you do not want to use HTTP signatures
    ],
    ...
]
```

Then you can output modified image like so:

```
Yii::$app->glide->outputImage('new-upload.jpg', ['w' => 100, 'fit' => 'crop'])
```

You can also use `trntv\glide\actions\GlideAction` to output images: In any controller add (`SiteController` for example):

```
public function actions()
{
    return [
        'glide' => 'trntv\glide\actions\GlideAction'
    ]
}
```

Than use it: `/index.php?r=site/glide?path=new-upload.jpg&w=100&h=75`

Example
-------

[](#example)

Complex Glide integration example can be found [here](https://github.com/trntv/yii2-starter-kit/tree/master/storage)

Secure Urls
-----------

[](#secure-urls)

TBD

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

1619d ago

PHP version history (2 changes)1.2.4PHP ^7.2

1.2.5PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ace2d281a54f804ff421c5061bc5a588502d2f3c3f4cd62f5d989b4dc1e1ad3?d=identicon)[algsupport](/maintainers/algsupport)

---

Top Contributors

[![algsupport](https://avatars.githubusercontent.com/u/8190132?v=4)](https://github.com/algsupport "algsupport (1 commits)")

---

Tags

thumbnailyii2extensionglide

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/algsupport-yii2-glide/health.svg)

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

###  Alternatives

[trntv/yii2-glide

Yii2 Glide Extension

41269.5k9](/packages/trntv-yii2-glide)[bilginnet/yii2-cropper

Yii2 Bootstrap Cropper Input Widget

2232.1k](/packages/bilginnet-yii2-cropper)[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

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

 yii2 image cropping extension

101.5k](/packages/developit-yii2-jcrop)

PHPackages © 2026

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