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

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

iutbay/yii2-kcfinder
====================

KCFinder for Yii2

0.0.1(11y ago)2043.0k↓47.5%22[15 issues](https://github.com/iutbay/yii2-kcfinder/issues)[2 PRs](https://github.com/iutbay/yii2-kcfinder/pulls)3PHP

Since Nov 28Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (3)

KCFinder for Yii2
=================

[](#kcfinder-for-yii2)

[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

32

—

LowBetter than 69% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

4228d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/273e8d8c3b73681916b6e80e2021f774dbdb4054d2ea2d0744a91baa99f6999b?d=identicon)[iutbay](/maintainers/iutbay)

---

Top Contributors

[![klevron](https://avatars.githubusercontent.com/u/4560725?v=4)](https://github.com/klevron "klevron (14 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/iutbay-yii2-kcfinder/health.svg)

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7760.0k](/packages/vyants-yii2-daemon)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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