PHP code example of icherisher / yii2-plupload

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

    

icherisher / yii2-plupload example snippets



return [
	'components'=>[
		// ...
		'pluploadManager' => [
			'class' => 'icherisher\plupload\components\PluploadManager'
		],
	],
	
	'modules'=>[
		// ...
		'plupload' => [
			'class' => 'icherisher\plupload\Moudle',
		],
	]
];



use icherisher\plupload\components\PluploadWidget;

// with ActiveForm & model
echo $form->field($model, 'attribute')->widget(PluploadWidget::class, [
	'options'=>[],
	'settings'=>[],
	'events'=>[],
	....
]); 

// without model
echo PluploadWidget::widget([
	'name'=>'attr_name',
	'value'=>'',
	'options'=>[],
	'settings'=>[],
	'events'=>[],
	....
]);



php composer.phar