dev-master
9999999-dev https://github.com/ResearchNK/RNKElFinderBundleEl finder connector for Symfony2
MIT
The Requires
by Mateusz Zakarczemny
elfinder file explorer
El finder connector for Symfony2
This Bundle provides a Symfony2 elFinder integration., (*1)
elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. This Bundle was inspired by FMElfinderBundle. In contrast to FMElfinderBundle, RNKElfinderBundle provides full integration with Symfony\Component\HttpFoundation component and is assetic less. All occurrence of exit() function and $_GET, $_POST, $_FILES arrays has been removed. This approach fixes 500 http errors which occurs when using native elFinderConnector in symfony, (*2)
RNKElfinderBundle is shipped with elFinder source files (due to lack of composer integration in elFinder). We haven't any additional changes to elFinder code. If embedded version of elFinder became outdated please inform us. We will update it as soon as possible., (*3)
{ "require": { "research-nk/elfinder-bundle": "dev-master" } }
$ php composer.phar update research-nk/elfinder-bundle
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new RNK\ElFinderBundle\RNKElfinderBundle(), // ... ); }
Add the following routes to your application:, (*4)
# app/config/routing.yml RNKElFinderBundle: resource: "@RNKElFinderBundle/Resources/config/routing.yml"
or configure your routes manually:, (*5)
rnk_el_finder_backend: pattern: /rnk_el_finder_backend defaults: { _controller: RNKElFinderBundle:ElFinder:backend } rnk_el_finder_show: pattern: /rnk_el_finder_show defaults: { _controller: RNKElFinderBundle:ElFinder:show }
# app/config/security.yml security: access_control: - { path: ^/rnk_el_finder_backend, role: ROLE_ADMIN } - { path: ^/rnk_el_finder_show, role: ROLE_ADMIN }
$ php app/console assets:install
rnk_el_finder: locale: '%locale%' connector: debug: false roots: uploads: driver: LocalFileSystem show_hidden_files: false path: 'uploads' upload_allow: [] upload_deny: [] upload_max_size: 10M
More about connector configuration can be found here - elFinder -Client configuration options, (*6)
Set elFinder locale., (*7)
Data type: string
Default value: '%locale%'
- symfony default locale, (*8)
Send debug to client., (*9)
Data type: boolean
Default value: false
, (*10)
Array of arrays with per root settings. This is the only required option. Multiple Roots are supported. Keys in this array are root names., (*11)
Data type: array
Default value: array()
, (*12)
Determinate if connector should hide files starting with dot, (*13)
Data type: boolean
Default value: false
, (*14)
Mimetypes allowed to upload., (*15)
Data type: array
Default value: array()
, (*16)
Mimetypes not allowed to upload. Same values accepted as in uploadAllow, (*17)
Data type: array
Default value: array()
, (*18)
Maximum upload file size. This size is per files. Can be set as number or string with unit 10M, 500K, 1G., (*19)
Data type: integer|string
Default value: 10M
, (*20)
El finder connector for Symfony2
MIT
elfinder file explorer