icherisher/yii2-plupload

A Yii2 module/widget for upload files

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

v1.0.1 2018-05-16 07:01 UTC

This package is not auto-updated.

Last update: 2025-07-06 09:31:11 UTC


README

A Yii2 module/widget for upload files

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist icherisher/yii2-plupload "*"

or add

"icherisher/yii2-plupload": "*"

to the require section of your composer.json file.

Configuration

To use this extension, you have to configure the Connection class in your application configuration:

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

Usage

Once the extension is installed, simply use it in your code by :

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'=>[],
	....
]);

Documentation

For 2.3.6:https://www.plupload.com/docs/