PHPackages                             serhatozles/yii2-elfinder - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. serhatozles/yii2-elfinder

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

serhatozles/yii2-elfinder
=========================

Yii2 Elfinder

277JavaScript

Since Nov 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/serhatozles/yii2-elfinder)[ Packagist](https://packagist.org/packages/serhatozles/yii2-elfinder)[ RSS](/packages/serhatozles-yii2-elfinder/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

elFinder
========

[](#elfinder)

Yii2 Elfinder

See:

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist serhatozles/yii2-elfinder "dev-master"

```

or add

```
"serhatozles/yii2-elfinder": "dev-master"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

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

Add Main.php

```
'controllerMap' => [
    'elfinder' => [
	'class' => 'serhatozles\elfinder\Controller',
//	    'options' => [
////		'height' => 250,
////		'getFileCallback' => 'function(url) { alert(url); }',
//		'uiOptions' => [
//		    'toolbar' => [
//			['back', 'forward'],
//			['netmount'],
//			['upload'],
//			['open', 'download', 'getfile'],
//			['info'],
//			['quicklook'],
//			['rm'],
//			['edit', 'resize'],
//			['search'],
//			['view', 'sort'],
//			['help']
//		    ]
//		],
//		'contextmenu' => [
//		    'navbar' => ['open', '|', 'info'],
//		    'cwd' => ['reload', 'back', '|', 'upload', '|', 'sort', '|', 'info'],
//		    'files' => ['getfile', '|', 'open', 'quicklook', '|', 'download', '|', 'rm', '|', 'edit', 'resize', '|', 'info']
//		],
//		'onlyMimes' => ["image"],
//	    ]
    ]
//    'elfinder2' => [
//	'class' => 'serhatozles\elfinder\Controller',
//	...
//    ]
//    ...
],
```

View:

```
    echo \serhatozles\elfinder\elFinder::widget([
	'ajax' => Url::to(['site/elfinder']),
//	'controller' => 'elfinder2',
//	'height' => 270,
    ]);
```

Controller Action:

```
    public $enableCsrfValidation = false;

    public function actionElfinder() {

	$elFinder = new \serhatozles\elfinder\elFinder;
	echo $elFinder->connector([
	    // 'debug' => true,
	    'roots' => [
		[
		    'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
		    'path' => Yii::getAlias('@webroot/files/'), // path to files (REQUIRED)
		    'URL' => Yii::getAlias('@web/files/'), // URL to files (REQUIRED)
		    'mimeDetect' => 'internal',
		    'onlyMimes' => ['image'],
		],
	    ]
	]);
    }
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4962332?v=4)[-awxy](/maintainers/serhatozles)[@serhatozles](https://github.com/serhatozles)

---

Top Contributors

[![serhatozles](https://avatars.githubusercontent.com/u/4962332?v=4)](https://github.com/serhatozles "serhatozles (34 commits)")

### Embed Badge

![Health badge](/badges/serhatozles-yii2-elfinder/health.svg)

```
[![Health](https://phpackages.com/badges/serhatozles-yii2-elfinder/health.svg)](https://phpackages.com/packages/serhatozles-yii2-elfinder)
```

###  Alternatives

[blanchonvincent/cdn-light

ZF2 module v1.1.0 - Manage your own CDN with ZF2 application

103.6k](/packages/blanchonvincent-cdn-light)

PHPackages © 2026

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