PHPackages                             rob006/yii-elfinder2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. rob006/yii-elfinder2

ActiveYii-extension[File &amp; Storage](/categories/file-storage)

rob006/yii-elfinder2
====================

elFinder 2.1 integration for Yii 1.1

1.1.7(2y ago)32.7k—0%1BSD-3-ClausePHPPHP ^5.4 || ^7.0 || ^8.0

Since Apr 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rob006-software/yii-elfinder2)[ Packagist](https://packagist.org/packages/rob006/yii-elfinder2)[ Docs](https://github.com/rob006-software/yii-elfinder2)[ RSS](/packages/rob006-yii-elfinder2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (15)Used By (0)

elFinder 2.1 integration for Yii 1.1
====================================

[](#elfinder-21-integration-for-yii-11)

Based on [https://bitbucket.org/z\_bodya/yii-elfinder](https://bitbucket.org/z_bodya/yii-elfinder) with updated [elFinder](https://github.com/Studio-42/elFinder) and some code improvements.

How to use
----------

[](#how-to-use)

1. Checkout source code to your project to ext.elFinder. You can use custom elFinder code, just set `elFindervendor` alias to point your elFinder code directory.

    ```
    'aliases' => [
        'elFindervendor' => 'vendor.myCystomElFinder',
    ],
    ```

    You can get elFinder from  - remember to move `css`, `img`, `js`and `sounds` directories to `assets` directory, so elFinder source will look like:

    [![](https://camo.githubusercontent.com/6fd689d634d1c4f47557a340925bd8d7595df2567d6d6daeeb6fbd57a11cab1c/687474703a2f2f662e726f623030362e6e65742f702f323031362f356163633936303736373531623936643964393463633366363564652e706e67)](https://camo.githubusercontent.com/6fd689d634d1c4f47557a340925bd8d7595df2567d6d6daeeb6fbd57a11cab1c/687474703a2f2f662e726f623030362e6e65742f702f323031362f356163633936303736373531623936643964393463633366363564652e706e67)
2. Create controller for connector action, and configure it params

    ```
    class ElfinderController extends Controller {

        // don't forget configure access rules

        public function actions() {
            return [
                // main action for elFinder connector
                'connector' => [
                    'class' => 'ext.elFinder.ElFinderConnectorAction',
                    // elFinder connector configuration
                    // https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options
                    'settings' => [
                        'roots' => [
                            [
                                'driver' => 'LocalFileSystem',
                                'path' => Yii::getPathOfAlias('webroot') . '/files/',
                                'URL' => Yii::app()->baseUrl . '/files/',
                                'alias' => 'Root Alias',
                                'acceptedName' => '/^[^\.].*$/', // disable creating dotfiles
                                'attributes' => [
                                    [
                                        'pattern' => '/\/[.].*$/', // hide dotfiles
                                        'read' => false,
                                        'write' => false,
                                        'hidden' => true,
                                    ],
                                ],
                            ],
                        ],
                    ],
                ],
                // action for TinyMCE popup with elFinder widget
                'elfinderTinyMce' => [
                    'class' => 'ext.elFinder.TinyMceElFinderPopupAction',
                    'connectorRoute' => 'connector', // main connector action id
                ],
                // action for file input popup with elFinder widget
                'elfinderFileInput' => [
                    'class' => 'ext.elFinder.ServerFileInputElFinderPopupAction',
                    'connectorRoute' => 'connector', // main connector action id
                ],
            ];
        }
    }
    ```
3. ServerFileInput - use this widget to choose file on server using elFinder pop-up

    ```
    $this->widget('ext.elFinder.ServerFileInput', [
        'model' => $model,
        'attribute' => 'field_name',
        'popupConnectorRoute' => 'elfinder/elfinderFileInput', // relative route for file input action
        // ability to customize "Browse" button
    //	'customButton' => CHtml::button('Browse images', [
    //		'id' => CHtml::getIdByName(CHtml::activeName($model, 'field_name')) . 'browse',
    //		'class' => 'btn', 'style' => 'margin-left:10px',
    //	]),
        // title for popup window (optional)
        'popupTitle' => 'Files',
    ]);
    ```
4. ElFinderWidget - use this widget to manage files

    ```
    $this->widget('ext.elFinder.ElFinderWidget', [
        'connectorRoute' => 'elfinder/connector', // relative route for elFinder connector action
    ]);
    ```
5. TinyMceElFinder - use this widget to integrate elFinder with [yii-tinymce](https://github.com/rob006/yii-tinymce)

    ```
    $this->widget('ext.tinymce.TinyMce', [
        'model' => $model,
        'attribute' => 'content',
        'fileManager' => [
            'class' => 'ext.elFinder.TinyMceElFinder',
            'popupConnectorRoute' => 'elfinder/elfinderTinyMce', // relative route for TinyMCE popup action
            // title for popup window (optional)
            'popupTitle' => 'Files',
        ],
    ]);
    ```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 84.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~273 days

Recently: every ~396 days

Total

14

Last Release

860d ago

PHP version history (2 changes)1.1.3PHP ^5.4 || ^7.0

1.1.5PHP ^5.4 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b6f0a1cac6366571b3681228cdfc493f7e018e4c966f35e75e95f918ae417ff?d=identicon)[rob006](/maintainers/rob006)

---

Top Contributors

[![rob006](https://avatars.githubusercontent.com/u/5972388?v=4)](https://github.com/rob006 "rob006 (90 commits)")[![zxbodya](https://avatars.githubusercontent.com/u/446117?v=4)](https://github.com/zxbodya "zxbodya (16 commits)")

---

Tags

elfinderyiiyii-extensionwidgettinymcefile managerelfinder

### Embed Badge

![Health badge](/badges/rob006-yii-elfinder2/health.svg)

```
[![Health](https://phpackages.com/badges/rob006-yii-elfinder2/health.svg)](https://phpackages.com/packages/rob006-yii-elfinder2)
```

###  Alternatives

[barryvdh/laravel-elfinder

A Laravel Package to integrate elFinder 2

7542.7M45](/packages/barryvdh-laravel-elfinder)[helios-ag/fm-elfinder-bundle

ElFinder bundle, adds ElFinder file manager to your Symfony project

2814.8M27](/packages/helios-ag-fm-elfinder-bundle)[zxbodya/yii2-elfinder

Extension to use elFinder 1.x file manager in Yii2 application

1035.7k3](/packages/zxbodya-yii2-elfinder)[components/elfinder

ElFinder FileManager

551.9M1](/packages/components-elfinder)[mafftor/laravel-file-manager

The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox

3619.3k](/packages/mafftor-laravel-file-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
