PHP code example of lehadnk / yii2-image-upload-form
1. Go to this page and download the library: Download lehadnk/yii2-image-upload-form 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/ */
lehadnk / yii2-image-upload-form example snippets
use \yii\helpers\Url;
<?= \lehadnk\ImageUploadForm\Widget::widget([
'options' => [
'uploadUrl' => Url::to('image/upload'),
'deleteUrl' => Url::to('image/delete'),
],
'container' => new DirectoryBasedContainer('uploads/'),
]);
php composer.phar
"lehadnk/yii2-image-upload-form": "*"