PHP code example of keygenqt / yii2-image-ajax

1. Go to this page and download the library: Download keygenqt/yii2-image-ajax 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/ */

    

keygenqt / yii2-image-ajax example snippets


<?= $form->field($model, 'image')->widget(ImageAjax::class, [
    'label' => false,
    'btnSelect' => 'Choose',
    'btnDelete' => 'Delete',
    'url' => ['ajax/upload-image', 'type' => 'test'],
    'subtitle' => 'This video will change its size to 360х360, so keep that in mind.',
    'afterUpdate' => 'function() {
        console.log("call afterUpdate")
    }'
])