PHP code example of dominus77 / yii2-jcrop-widget
1. Go to this page and download the library: Download dominus77/yii2-jcrop-widget library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dominus77 / yii2-jcrop-widget example snippets
php composer.phar
<?= \dominus77\jcrop\JCrop::widget([
'image' => Yii::getAlias('@web/uploads/image1.jpg'),
'pluginOptions' => [//...],
'callBack' => new yii\web\JsExpression("
function(){
jcrop_api = this;
}
")
])