yii2-jcrop yii2 image cropping extension

  1. Installation
  2. Usage
  3. Resources

https://github.com/rezaei121/yii2-jcrop

Installation

The preferred way to install this extension is through composer.

Either run php composer.phar require --prefer-dist developit/yii2-jcrop "" or add "developit/yii2-jcrop": ""

Usage

Once the extension is installed, simply use it in your code by :

use developit\jcrop\Jcrop;
<?= $form->field($model, 'avatar')->widget(Jcrop::className(), [
    'uploadUrl' => Url::toRoute('/user/avatar'),
])->label(false) ?>

Resources

0 1
1 follower
0 downloads
Yii Version: 2.0
License: GPL-3.0
Category: User Interface
Developed by: mr.rezaee
Created on: Sep 20, 2017
Last updated: 7 years ago

Related Extensions