There is no license information available for the latest version (3.0.0) of this package.

Installs: 15 914

Dependents: 1

Suggesters: 0

Stars: 11

Watchers: 7

Forks: 12

Open Issues: 9



3.0.0 2015-09-10 20:56 UTC


since ckfinder is not available in any package manager this project does not work.

To make it work you need to download ckfinder by yourself and install it inside the vendor/jonlil/ckfinder

This is a ugly hack to make it work but if someone has the time I gladly take a PR that download the sources from ckfinders homepage and put them in the correct folder.


1) Installation

Add the following line in the require section of your composer.json:

for using CKEditor 4.4.6 and greater:

"jonlil/ckfinder-bundle": "3.*"

for using CKEditor 4.4.5 and less:

"jonlil/ckfinder-bundle": "2.*"

Register the bundle in the app/AppKernel.php:

public function registerBundles()
    $bundles = array(
        new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
        new Jonlil\CKFinderBundle\JonlilCKFinderBundle('IvoryCKEditorBundle'),

2) Configuration

# app/config/routing.yml

    resource: "@JonlilCKFinderBundle/Resources/config/routing/routing.yml"
    prefix: /ckfinder
For usage with amazon s3
# app/config/config.yml

        key: ""
        name: ""
    baseDir: "/"
    baseUrl: ""
    service: "s3"
    accessKey: ""
    secret: ""
    bucket: ""

There are also some optional parameters :

"thumbnailsEnabled": if you want to display thumbnails on the different images

"thumbnailsFile": to use a specific thumbnails to make a preview

"directAccess": if you have a direct access to the file forthe preview

"fileDelete", "fileRename", "fileUpload", "fileView": if you want to prevent some file action

"folderRename", "folderDelete", "folderCreate", "folderView": If you want to prevent some action on the folder

For usage with native php storage
    license: # optional, can be used in demo mode also
        key: ""
        name: ""
    baseDir: "%assetic.read_from%"
    baseUrl: "/userfiles/"  # path where your files will be stored
    service: "php"
# app/config/config.yml

    jonlil.ckfinder.customAuthentication: %kernel.root_dir%/...path your custom config.php or any other file

Write your own function CheckAuthentication() in your custom config.php


function CheckAuthentication()
    isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];


3) Usage

# in your symfony2 form - add this
public function buildForm (FormBuilderInterface $builder, array $options)
        ->add('text', 'ckfinder')

4) Testing

This bundle provides a set of integration tests you should run whenever you make changes in the source code.

  • Git clone the bundle.
  • Execute composer update
  • Run php vendor/bin/phpunit

5) Todos

Fix amazon s3 thumbnails - Refer to this project

Security should be managed in CheckAuthentication(). Look at the config.php file for further details.