PHPackages                             yii-starter-kit/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. yii-starter-kit/yii2-glide

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

yii-starter-kit/yii2-glide
==========================

Yii2 Glide Extension

2.0.0(1w ago)01BSD-3-ClausePHPPHP &gt;=8.4CI passing

Since Mar 9Pushed 1w agoCompare

[ Source](https://github.com/yii-starter-kit/yii2-glide)[ Packagist](https://packagist.org/packages/yii-starter-kit/yii2-glide)[ RSS](/packages/yii-starter-kit-yii2-glide/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (2)Used By (0)

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

[](#yii2-glide)

Yii2 Glide integration — forked and maintained by [yii-starter-kit](https://github.com/yii-starter-kit).

> 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

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

```
composer require --prefer-dist yii-starter-kit/yii2-glide
```

or add

```
"yii-starter-kit/yii2-glide": "^2.0"
```

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

Usage
-----

[](#usage)

Add glide configuration:

```
'components' => [
    ...
    'glide' => [
        'class' => 'YiiStarterKit\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 `YiiStarterKit\glide\actions\GlideAction` to output images: In any controller add (`SiteController` for example):

```
public function actions()
{
    return [
        'glide' => 'YiiStarterKit\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/yii-starter-kit/yii2-starter-kit/tree/master/storage)

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

[](#secure-urls)

TBD

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance98

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor3

3 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

12d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fd1ace71516f0450becfde434768c796da0e314b6a20ed4900ff3ee0f1cc081?d=identicon)[XzAeRo](/maintainers/XzAeRo)

---

Top Contributors

[![XzAeRo](https://avatars.githubusercontent.com/u/1656037?v=4)](https://github.com/XzAeRo "XzAeRo (3 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)")[![andrew72ru](https://avatars.githubusercontent.com/u/567649?v=4)](https://github.com/andrew72ru "andrew72ru (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)")[![webdevsega](https://avatars.githubusercontent.com/u/1552376?v=4)](https://github.com/webdevsega "webdevsega (1 commits)")[![spiritbox](https://avatars.githubusercontent.com/u/10751046?v=4)](https://github.com/spiritbox "spiritbox (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/yii-starter-kit-yii2-glide/health.svg)

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

###  Alternatives

[trntv/yii2-glide

Yii2 Glide Extension

41267.2k8](/packages/trntv-yii2-glide)[raoul2000/yii2-jcrop-widget

This extension is a wrapper for the jQuery Image Cropping Plugin (jcrop)

10241.7k2](/packages/raoul2000-yii2-jcrop-widget)[bilginnet/yii2-cropper

Yii2 Bootstrap Cropper Input Widget

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

Yii2 extension for upload and crop images

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

PHPackages © 2026

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