2017 © Pedro Peláez
 

yii2-extension yii2-picturizer

Yii-Framework extension for uploading and cropping images

image

meliorator/yii2-picturizer

Yii-Framework extension for uploading and cropping images

  • Friday, July 13, 2018
  • by meliorator
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 38 % Grown

The README.md

Picturizer

Yii-Framework extension for uploading and cropping images., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist meliorator/yii2-picturizer "*"

or add, (*4)

"meliorator/yii2-picturizer": "*"

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

Differences another extensions for JCrop library

Picturizer does not use the ajax-simple-upload-button or another ajax upload methods. Picturizer use only the HTTP POST method for upload files., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

<?= \meliorator\picturizer\Picturizer::widget(); ?>

and need attach behavior PicturizerControllerBehavior to controller. Example :, (*8)

use meliorator\picturizer\PicturizerControllerBehavior;

```php return [
'avatar' => [ 'class' => PicturizerControllerBehavior::className(), 'savePath' => '@webroot/images/employees' ] ];, (*9)

and call saveUploadedImage method for save image :
```php
$newFileName = $this->saveUploadedImage();

The Versions

13/07 2018

dev-master

9999999-dev

Yii-Framework extension for uploading and cropping images

  Sources   Download

MIT

The Requires

 

by Laba Mykola

extension yii2 crop image jcrop