2017 © Pedro Peláez
 

yii2-extension yii2-elfinder

Elfinder implementation for yii2 framework

image

simialbi/yii2-elfinder

Elfinder implementation for yii2 framework

  • Tuesday, May 8, 2018
  • by simialbi
  • Repository
  • 0 Watchers
  • 0 Stars
  • 99 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 39 Versions
  • 4 % Grown

The README.md

yii2-elfinder

This extension integrates the jQuery elFinder into yii2 framework (the yii way: with elFinder component, behaviors, configurable objects, events etc.). Additionally it prevents jui/elfinder css from loading and provides it's own styles for elfinder (bootstrap3 / fontawesome scss based style)., (*1)

Latest Stable Version Total Downloads License Build Status, (*2)

Resources

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ php composer.phar require --prefer-dist simialbi/yii2-elfinder

or add, (*5)

"simialbi/yii2-elfinder": "*"

to the require section of your composer.json, (*6)

Usage

Setup Module

Add the module elfinder to the modules section of your configuration file:, (*7)

'modules' => [
    'elfinder' => [
        'class'          => 'simialbi\yii2\elfinder\Module',
        'options'        => [
            'default' => [
                'class'      => 'simialbi\yii2\elfinder\ElFinderOptions',
                'locale'     => 'de_DE.UTF-8',
                'maxTargets' => 0
            ]
        ],
        'connectionSets' => [
            'default' => [ // like elfinder roots
                [
                    'class' => 'simialbi\yii2\elfinder\ElFinderConfigurationLocalFileSystem',
                    'path'  => '@webroot/files',
                    'URL'   => '@web/files'
                ]
            ]
        ],
        'volumeBehaviors' => [
            'default' => [ // like elfinder plugins, add behaviors
                'as resizer'   => [
                    'class'     => 'simialbi\yii2\elfinder\behaviors\ImageResizeBehavior',
                    'maxWidth'  => 1920,
                    'maxHeight' => 1080,
                    'quality'   => 70
                ],
                'as optimizer' => [
                    'class' => 'simialbi\yii2\elfinder\behaviors\ImageOptimizeBehavior'
                ]
            ]
        ]
    ]
]

Example Usage

Elfinder widget

To include an elfinder instance in one of your pages, call the elfinder widget like this:, (*8)

title = 'elFinder';
$this->params['breadcrumbs'][] = $this->title;

?>


'default' // from module connectionSets/volumeBehaviors configuration (array key) ]); ?>

All options from elfinder client configuration options and instanceName can be used to configure the widget., (*9)

ElFinderInput widget

To include an elfinder input field widget, call the input widget like this:, (*10)

title = 'elFinder';
$this->params['breadcrumbs'][] = $this->title;

?>


'my-file', 'value' => '/path/to/my/file.ext', 'instanceName' => 'default' ]); // or model like usage /* @var $form \yii\widgets\ActiveForm */ /* @var $model \yii\base\Model */ echo $form->field($model, 'my-file')->widget( ElFinderInput::className(), [ 'instanceName' => 'default' ] ); ?>

License

yii2-elfinder is released under MIT license. See bundled LICENSE for details., (*11)

The Versions

19/01 2018
19/01 2018
18/01 2018
12/01 2018
21/12 2017
21/12 2017
21/12 2017

1.2.4

1.2.4.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

12/12 2017

1.2.3

1.2.3.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

06/12 2017

1.2.2

1.2.2.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

06/12 2017

1.2.1

1.2.1.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

06/12 2017

1.2

1.2.0.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

29/11 2017

1.1.16

1.1.16.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

29/11 2017

1.1.15

1.1.15.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

29/11 2017

1.1.14

1.1.14.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

29/11 2017

1.1.12

1.1.12.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

29/11 2017

1.1.13

1.1.13.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

28/11 2017

1.1.11

1.1.11.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

24/10 2017

1.1.10

1.1.10.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

24/10 2017

1.1.9

1.1.9.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

24/10 2017

1.1.8

1.1.8.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

24/10 2017

1.1.7

1.1.7.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

24/10 2017

1.1.6

1.1.6.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

20/10 2017

1.1.5

1.1.5.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

20/10 2017

1.1.4

1.1.4.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

20/10 2017

1.1.3

1.1.3.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

20/10 2017

1.1.2

1.1.2.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

20/10 2017

1.1.1

1.1.1.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

20/10 2017

1.1

1.1.0.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

18/09 2017

1.0.1

1.0.1.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder

15/09 2017

1.0

1.0.0.0

Elfinder implementation for yii2 framework

  Sources   Download

MIT

The Requires

 

by Simon Karlen

yii2 elfinder