PHPackages                             devrundebug/yii2-kcfinder - 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. devrundebug/yii2-kcfinder

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

devrundebug/yii2-kcfinder
=========================

KCFinder integration for Yii2 (frozen to upstream tag 3.12)

1.0.6(10mo ago)010MITPHP

Since Jul 10Pushed 10mo agoCompare

[ Source](https://github.com/devrundebug/yii2-kcfinder)[ Packagist](https://packagist.org/packages/devrundebug/yii2-kcfinder)[ Docs](https://github.com/devrundebug/yii2-kcfinder)[ RSS](/packages/devrundebug-yii2-kcfinder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (8)Used By (0)

**KCFinder for Yii2**

***Forked from \[iutbay/yii2-kcfinder\]***

dependency frozen for `sunhater/kcfinder` tag `3.12`, as there is a problem with the last `3.20-test*` tag at `composer install`

Originally forked from \[iutbay/yii2-kcfinder\] (original readme below)
=======================================================================

[](#originally-forked-from-iutbayyii2-kcfinder-original-readme-below)

[KCFinder](http://kcfinder.sunhater.com/) for Yii2.

WARNING : I don't have time actually to maintain this repository, but take a [look here](https://github.com/iutbay/mm) (WIP)...

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

[](#installation)

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

Since kcfinder package do not have stable release on packagist, you should use these settings in your `composer.json` file :

```
"minimum-stability": "dev",
"prefer-stable": true,
```

After, either run

```
php composer.phar require "iutbay/yii2-kcfinder" "dev-master"

```

or add

```
"iutbay/yii2-kcfinder" : "dev-master"
```

to the require section of your application's `composer.json` file.

Widget Use
----------

[](#widget-use)

Without model :

```
use iutbay\yii2kcfinder\KCFinderInputWidget;

echo KCFinderInputWidget::widget([
	'name' => 'image',
]);
```

With model and ActiveForm :

```
use iutbay\yii2kcfinder\KCFinderInputWidget;

echo $form->field($model, 'images')->widget(KCFinderInputWidget::className(), [
	'multiple' => true,
]);
```

Use with 2amigos/yii2-ckeditor-widget
-------------------------------------

[](#use-with-2amigosyii2-ckeditor-widget)

You should extend `\dosamigos\ckeditor\CKEditor`, e.g. :

```
namespace app\widgets;

use yii\helpers\ArrayHelper;

use iutbay\yii2kcfinder\KCFinderAsset;

class CKEditor extends \dosamigos\ckeditor\CKEditor
{

	public $enableKCFinder = true;

	/**
	 * Registers CKEditor plugin
	 */
	protected function registerPlugin()
	{
		if ($this->enableKCFinder)
		{
			$this->registerKCFinder();
		}

		parent::registerPlugin();
	}

	/**
	 * Registers KCFinder
	 */
	protected function registerKCFinder()
	{
		$register = KCFinderAsset::register($this->view);
		$kcfinderUrl = $register->baseUrl;

		$browseOptions = [
			'filebrowserBrowseUrl' => $kcfinderUrl . '/browse.php?opener=ckeditor&type=files',
			'filebrowserUploadUrl' => $kcfinderUrl . '/upload.php?opener=ckeditor&type=files',
		];

		$this->clientOptions = ArrayHelper::merge($browseOptions, $this->clientOptions);
	}

}
```

You should then set KCFinder options using session var, e.g. :

```
// kcfinder options
// http://kcfinder.sunhater.com/install#dynamic
$kcfOptions = array_merge(KCFinder::$kcfDefaultOptions, [
	'uploadURL' => Yii::getAlias('@web').'/upload',
	'access' => [
		'files' => [
			'upload' => true,
			'delete' => false,
			'copy' => false,
			'move' => false,
			'rename' => false,
		],
		'dirs' => [
			'create' => true,
			'delete' => false,
			'rename' => false,
		],
	],
]);

// Set kcfinder session options
Yii::$app->session->set('KCFINDER', $kcfOptions);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance55

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~0 days

Total

7

Last Release

304d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/266e76c5231138790cf5d1cd4905499826c6592cb2cbdd02af393278c7fa0bd1?d=identicon)[devrundebug](/maintainers/devrundebug)

---

Top Contributors

[![klevron](https://avatars.githubusercontent.com/u/4560725?v=4)](https://github.com/klevron "klevron (14 commits)")[![devrundebug](https://avatars.githubusercontent.com/u/126520949?v=4)](https://github.com/devrundebug "devrundebug (7 commits)")[![atakajlo](https://avatars.githubusercontent.com/u/5870060?v=4)](https://github.com/atakajlo "atakajlo (2 commits)")[![soju22](https://avatars.githubusercontent.com/u/671785?v=4)](https://github.com/soju22 "soju22 (1 commits)")

---

Tags

yii2extensionkcfinder

### Embed Badge

![Health badge](/badges/devrundebug-yii2-kcfinder/health.svg)

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

###  Alternatives

[richardfan1126/yii2-sortable-gridview

Sortable GridView for Yii2

29189.3k](/packages/richardfan1126-yii2-sortable-gridview)[gilek/yii2-gtreetable

yii2-gtreetable is an extension of Yii 2 Framework, which is wrapper for bootstrap-gtreetable plug-in, on the other hand it provides functionality which allows to save the nodes states into database.

4111.8k](/packages/gilek-yii2-gtreetable)

PHPackages © 2026

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