PHPackages                             akbarjoudi/ckfinder-laravel-package - 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. akbarjoudi/ckfinder-laravel-package

ActiveLibrary

akbarjoudi/ckfinder-laravel-package
===================================

CKFinder 3 package for Laravel

3.5.1.4(6y ago)011MITHTMLPHP ^7.2.5

Since Jul 13Pushed 6y agoCompare

[ Source](https://github.com/akbarjoudi/ckfinder-laravel-package)[ Packagist](https://packagist.org/packages/akbarjoudi/ckfinder-laravel-package)[ RSS](/packages/akbarjoudi-ckfinder-laravel-package/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (6)Versions (12)Used By (0)

### [![](https://user-images.githubusercontent.com/803299/42567830-6b6d3ad6-850b-11e8-9151-43021c92d8b7.png)](https://user-images.githubusercontent.com/803299/42567830-6b6d3ad6-850b-11e8-9151-43021c92d8b7.png)

[](#)

CKFinder 3 Package for Laravel 5.5+ [![Tweet](https://camo.githubusercontent.com/cb820a0ecc9645168e33b03925d7f14691262ddbaeaf66a0a91697803d0cba2d/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f736869656c64732e696f2e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=Check%20out%20CKFinder%20package%20for%20Laravel%20&url=https://github.com/ckfinder/ckfinder-laravel-package)
==============================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#ckfinder-3-package-for-laravel-55-)

![Laravel version](https://camo.githubusercontent.com/2c9d8c6612a9cfbb4bd816456f0d4271070b0e5bfb4501acf17cab1987adb8c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e35253243253230352e362d677265656e2e737667)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![Packagist](https://camo.githubusercontent.com/5144b8ccb7f77a9cf26eb8ad862e90839e4b824fd090a830044a7799bc804d83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636b66696e6465722f636b66696e6465722d6c61726176656c2d7061636b6167652e737667)](https://packagist.org/packages/ckfinder/ckfinder-laravel-package)[![Packagist](https://camo.githubusercontent.com/df88a22370c44623931ed1dff3b29dfa30330e4b60a0e5d3052d2bbb3c9d2334/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636b66696e6465722f636b66696e6465722d6c61726176656c2d7061636b6167652e737667)](https://packagist.org/packages/ckfinder/ckfinder-laravel-package)[![Join newsletter](https://camo.githubusercontent.com/e49ed15dff4cf969e387dcf391e1e84ab78caca0c695b9f150c76d8d380c9d59/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6a6f696e2d6e6577736c65747465722d3030636339392e737667)](http://eepurl.com/c3zRPr)[![Follow twitter](https://camo.githubusercontent.com/6619143c5a96ebe7fa1dd1d40d16f8587b519a91c003d7b472d5047c36e6b744/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f6c6c6f772d747769747465722d3030636339392e737667)](https://twitter.com/ckeditor)

This repository contains the CKFinder 3 Package for Laravel 5.5+.

### [![](https://user-images.githubusercontent.com/803299/42693315-18717aae-86af-11e8-863a-74070edb3912.png)](https://ckeditor.com/docs/ckfinder/demo/ckfinder3/samples/widget.html)

[](#-1)

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

[](#installation)

1. Add a Composer dependency and install the package.

    ```
    composer require ckfinder/ckfinder-laravel-package
    ```
2. Run the command to download the CKFinder code.

    After installing the Laravel package you need to download CKFinder code. It is not shipped with the package due to different license terms. To install it, run the following `artisan` command:

    ```
    php artisan ckfinder:download
    ```

    It will download the required code and place it inside an appropriate directory of the package (`vendor/ckfinder/ckfinder-laravel-package/`).
3. Publish the CKFinder connector configuration and assets.

    ```
    php artisan vendor:publish --tag=ckfinder
    ```

    This will publish CKFinder assets to `public/js/ckfinder`, and the CKFinder connector configuration to `config/ckfinder.php`.
4. Create a directory for CKFinder files and allow for write access to it. By default CKFinder expects the files to be placed in `public/userfiles` (this can be altered in the configuration).

    ```
    mkdir -m 777 public/userfiles
    ```

**NOTE:** Since usually setting permissions to `0777` is insecure, it is advisable to change the group ownership of the directory to the same user as Apache and add group write permissions instead. Please contact your system administrator in case of any doubts.

At this point you should see the connector JSON response after navigating to the `/ckfinder/connector?command=Init` address. Authentication for CKFinder is not configured yet, so you will see an error response saying that CKFinder is not enabled.

Configuring Authentication
--------------------------

[](#configuring-authentication)

CKFinder connector authentication is handled by [middleware](https://laravel.com/docs/5.8/middleware) class or alias. To create the custom middleware class, use the artisan command:

```
php artisan make:middleware CustomCKFinderAuth
```

The new middleware class will appear in `app/Http/Middleware/CustomCKFinderAuth.php`. Change the `authentication` option in `config/ckfinder.php`:

```
$config['authentication'] = '\App\Http\Middleware\CustomCKFinderAuth';
```

The `handle` method in `CustomCKFinderAuth` class allows to authenticate CKFinder users. A basic implementation that returns `true` from the `authentication` callable (which is obviously **not secure**) can look like below:

```
public function handle($request, Closure $next)
{
    config(['ckfinder.authentication' => function() {
        return true;
    }]);
    return $next($request);
}
```

Please have a look at the [CKFinder for PHP connector documentation](https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_authentication) to find out more about this option.

Configuration Options
---------------------

[](#configuration-options)

The CKFinder connector configuration is taken from the `config/ckfinder.php` file.

To find out more about possible connector configuration options please refer to the [CKFinder for PHP connector documentation](https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html).

Usage
-----

[](#usage)

The package code contains a couple of usage examples that you may find useful. To enable them, uncomment the `ckfinder_examples`route in `vendor/ckfinder/ckfinder-laravel-package/src/routes.php`:

```
// vendor/ckfinder/ckfinder-laravel-package/src/routes.php

Route::any('/ckfinder/examples/{example?}', 'CKSource\CKFinderBridge\Controller\CKFinderController@examplesAction')
    ->name('ckfinder_examples');
```

After that you can navigate to the `/ckfinder/examples` path and have a look at the list of available examples. To find out about the code behind them, check the `views/samples` directory in the package (`vendor/ckfinder/ckfinder-laravel-package/views/samples/`).

### Including the Main CKFinder JavaScript File in Templates

[](#including-the-main-ckfinder-javascript-file-in-templates)

To be able to use CKFinder on a web page you have to include the main CKFinder JavaScript file. The preferred way to do that is to include the CKFinder setup template, as shown below:

```
@include('ckfinder::setup')
```

The included template renders the required `script` tags and configures a valid connector path.

```

CKFinder.config( { connectorPath: '/ckfinder/connector' } );
```

---

Useful Links
------------

[](#useful-links)

- [CKFinder 3 usage examples](https://ckeditor.com/docs/ckfinder/demo/ckfinder3/samples/widget.html)
- [CKFinder 3 for PHP connector documentation](https://ckeditor.com/docs/ckfinder/ckfinder3-php/)
- [CKFinder 3 Developer's Guide](https://ckeditor.com/docs/ckfinder/ckfinder3/)
- [CKFinder 3 issue tracker](https://github.com/ckfinder/ckfinder)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

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

Every ~75 days

Recently: every ~47 days

Total

9

Last Release

2253d ago

PHP version history (2 changes)v3.4.4PHP &gt;=5.6.0

3.5.1.4PHP ^7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/86c45f5a5f720d9eceae052949dfb7fceba93680ea2b7783fff1655b3f0b4fb5?d=identicon)[akbarjoody](/maintainers/akbarjoody)

---

Top Contributors

[![zaak](https://avatars.githubusercontent.com/u/803299?v=4)](https://github.com/zaak "zaak (45 commits)")[![marcin-betlinski](https://avatars.githubusercontent.com/u/25298278?v=4)](https://github.com/marcin-betlinski "marcin-betlinski (9 commits)")[![vokiel](https://avatars.githubusercontent.com/u/422571?v=4)](https://github.com/vokiel "vokiel (4 commits)")[![akbarjoody](https://avatars.githubusercontent.com/u/251308600?v=4)](https://github.com/akbarjoody "akbarjoody (3 commits)")[![AnnaTomanek](https://avatars.githubusercontent.com/u/538321?v=4)](https://github.com/AnnaTomanek "AnnaTomanek (1 commits)")[![serderovsh](https://avatars.githubusercontent.com/u/24723913?v=4)](https://github.com/serderovsh "serderovsh (1 commits)")

### Embed Badge

![Health badge](/badges/akbarjoudi-ckfinder-laravel-package/health.svg)

```
[![Health](https://phpackages.com/badges/akbarjoudi-ckfinder-laravel-package/health.svg)](https://phpackages.com/packages/akbarjoudi-ckfinder-laravel-package)
```

###  Alternatives

[ckfinder/ckfinder-laravel-package

CKFinder 3 package for Laravel

159497.2k48](/packages/ckfinder-ckfinder-laravel-package)[forkcms/forkcms

Fork is an open source CMS that will rock your world.

1.2k44.5k](/packages/forkcms-forkcms)

PHPackages © 2026

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