The Imagine integration for the Yii framework.

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-main / 1.0.x-dev 2023-10-26 07:39 UTC

This package is auto-updated.

Last update: 2024-04-26 08:42:42 UTC


README

68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f7969695f6c6f676f5f6c696768742e737667

Imagine


php-version yii2-version PHPUnit Codecov PHPStan PHPStan level Code style

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --dev --prefer-dist yii2-extensions/imagine

or add

"yii2-extensions/imagine": "dev-main"

to the require-dev section of your composer.json file.

Usage

This extension is a wrapper to the Imagine and also adds the most commonly used image manipulation methods.

The following example shows how to use this extension:

use yii\imagine\Image;

// frame, rotate and save an image
Image::frame('path/to/image.jpg', 5, '666', 0)
    ->rotate(-8)
    ->save('path/to/destination/image.jpg', ['jpeg_quality' => 50]);

Testing

Check the documentation testing to learn about testing.

Our social networks

Twitter

License

The MIT License. Please see License File for more information.