2017 © Pedro Peláez
 

yii2-extension yii2-glide

Yii2 Glide Extension

image

trntv/yii2-glide

Yii2 Glide Extension

  • Thursday, April 26, 2018
  • by trntv
  • Repository
  • 7 Watchers
  • 31 Stars
  • 61,107 Installations
  • PHP
  • 14 Dependents
  • 1 Suggesters
  • 13 Forks
  • 3 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

Yii2 Glide

Yii2 Glide integration., (*1)

Glide is a wonderfully easy on-demand image manipulation library written in PHP., (*2)

Before you start read Glide documentation to understand what we are doing, (*3)

Demo

Since this package was created as a part of yii2-starter-kit it's demo can be found in starter kit demo., (*4)

Contributing

You can contribute anything you found useful in any convenient way. Any help appreciated., (*5)

Installation

The preferred way to install this extension is through composer., (*6)

Either run, (*7)

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

or add, (*8)

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

to the require section of your composer.json file., (*9)

Usage

Add glide configuration:, (*10)

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

Then you can output modified image like so:, (*11)

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):, (*12)

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, (*13)

Example

Complex Glide integration example can be found here, (*14)

Secure Urls

TBD, (*15)

The Versions

26/04 2018

dev-master

9999999-dev

Yii2 Glide Extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 glide thumbnail

26/04 2018

1.2.2

1.2.2.0

Yii2 Glide Extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 glide thumbnail

27/03 2018

1.2.1

1.2.1.0

Yii2 Glide Extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 glide thumbnail

06/12 2016

1.2.0

1.2.0.0

Yii2 Glide Extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 glide thumbnail

04/07 2016

dev-kroshilin-glide-1.x.x

dev-kroshilin-glide-1.x.x

Yii2 Glide Extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 glide thumbnail

06/04 2016

1.1.0

1.1.0.0

Yii2 Glide Extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 glide thumbnail

13/11 2015

1.0.1

1.0.1.0

Yii2 Glide Extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 glide thumbnail

09/04 2015

1.0.0

1.0.0.0

Yii2 Glide Extension

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 glide thumbnail