Yii 2.0: yii2-jcrop

yii2 image cropping extension
1 follower

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

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet