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

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

pamparam83/yii2-glide
=====================

Yii2 Glide Extension

v2.0.0(7mo ago)0127BSD-3-ClausePHPPHP &gt;=8.1

Since Sep 29Pushed 7mo agoCompare

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

READMEChangelog (1)Dependencies (7)Versions (2)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

35

—

LowBetter than 79% of packages

Maintenance63

Regular maintenance activity

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor4

4 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

226d ago

### Community

Maintainers

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

---

Top Contributors

[![pamparam83](https://avatars.githubusercontent.com/u/9422100?v=4)](https://github.com/pamparam83 "pamparam83 (2 commits)")[![ddinchev](https://avatars.githubusercontent.com/u/1397692?v=4)](https://github.com/ddinchev "ddinchev (2 commits)")[![Spell6inder](https://avatars.githubusercontent.com/u/2795910?v=4)](https://github.com/Spell6inder "Spell6inder (1 commits)")[![spiritbox](https://avatars.githubusercontent.com/u/10751046?v=4)](https://github.com/spiritbox "spiritbox (1 commits)")[![TheElk](https://avatars.githubusercontent.com/u/14090191?v=4)](https://github.com/TheElk "TheElk (1 commits)")[![vitaliy7711](https://avatars.githubusercontent.com/u/12095549?v=4)](https://github.com/vitaliy7711 "vitaliy7711 (1 commits)")[![andrew72ru](https://avatars.githubusercontent.com/u/567649?v=4)](https://github.com/andrew72ru "andrew72ru (1 commits)")[![webdevsega](https://avatars.githubusercontent.com/u/1552376?v=4)](https://github.com/webdevsega "webdevsega (1 commits)")[![biserantonov](https://avatars.githubusercontent.com/u/3635324?v=4)](https://github.com/biserantonov "biserantonov (1 commits)")

---

Tags

thumbnailyii2extensionglide

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/pamparam83-yii2-glide/health.svg)](https://phpackages.com/packages/pamparam83-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)
