Download the PHP package startsevdenis/fm-elfinder-bundle without Composer
On this page you can find all versions of the php package startsevdenis/fm-elfinder-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download startsevdenis/fm-elfinder-bundle
More information about startsevdenis/fm-elfinder-bundle
Files in startsevdenis/fm-elfinder-bundle
Package fm-elfinder-bundle
Short Description ElFinder bundle, adds ElFinder file manager to your Symfony2 project
License MIT
Homepage https://github.com/helios-ag/FMElfinderBundle
Informations about the package fm-elfinder-bundle
FMElfinderBundle
ElFinder integration in Symfony2
Code Quality Assurance
Gitter | SL Insight | TravisCI | Coverage | License | Version |
---|---|---|---|---|---|
![]() |
![]() |
Dependencies | Downloads |
---|---|
elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Creation is inspired by simplicity and convenience of Finder program used in Mac OS X operating system.
Recommended bundles to use with:
FMTinyMCEBundle | IvoryCKEditorBundle | TrsteelCkeditorBundle | FMSummernoteBundle |
---|---|---|---|
Table of contents
- Installation
- Step 1: Installation
- Step 2: Enable the bundle
- Step 3: Import FMElfinderBundle routing file
- Step 4: Securing paths
- Step 5: Install assets
- Basic configuration
- Add configuration options to your config.yml
- Use multiple upload folder by instance
- CORS support
- Events listeners / subscribers
- Events
- Sub requests
- Elfinder Form Type
- CKEditor integration
- Installation
- Configuration
- TinyMCE integration
- Integration with TinyMCE 3
- Integration with TinyMCE 4
-
Summernote integration
- Advanced configuration
- Custom configuration provider
- Custom loader
- Plugins
- Service as volume driver
- Flysystem configuration
Installation
Step 1: Installation
Version 6 (Symfony 3 Compatible):
Add FMElFinderBundle to your composer.json
Version 5:
Add FMElfinderBundle to your composer.json:
also add component-dir under config node of composer.json
Version 4:
This version doesn't use component library
For Symfony =<2.3 use version ~2.3
Now tell composer to download the bundle by running the command:
Step 2: Enable the bundle
Enable the bundle in the kernel:
Step 3: Import FMElfinderBundle routing file
Step 4: Configure your application's security.yml
Secure ElFinder with access_control:
Step 5: Install assets
Install and dump assets via symfony built-in command:
Basic configuration
Add configuration options to your config.yml
- default - instance of elfinder, can be used to define multiple configurations of ElFinder, allows simultaneous configuration for different types of WYSIWYG editors in your project
- path - define root directory for the files inside web/ directory, default is "uploads". Make sure to set proper write/read permissions to this directory.
- url - url to be prefixed to image path, for displaying. Can be either absolute or relative. If relative, it will be prefixed with the applications base-url. If left blank, url will be the base-url, append with the value of the 'path' parameter
- driver - can be LocalFileSystem, FTP or MySQL2, currently supported only LocalFileSystem, default is LocalFileSystem
- locale - locale determines, which language, ElFinder will use, to translate user interface, default is current request locale
- cors_support - allows cross domain responses handling (default false)
- editor - determines what template to render, to be compatible with WYSIWYG web editor, currently supported options are: "ckeditor" (to use with IvoryCKEditorBundle or TrsteelCkeditorBundle), "fm_tinymce" for tinymce4 (to use with FMTinyMCEBundle), "form" for form type, "simple" for standalone and "custom" for custom template. How to configure CKEDitor and TinyMCE to work with this bundle, will be explained further in this document.
- editor_template - define template to render editor is set to "custom".
- connector - root node for defining options for elfinder root directories.
- roots - define "virtual directories" that reflect directories in your project.
- path_prefix - path prefix with relative_path enabled, default is slash ('/')
- show_hidden - show files and folders that starts from . (dot)
- driver - driver type, LocalFileSystem, Dropbox, FTP
- volume_id - (optional) can be used to force a volume id when mounting volume (default auto-increments). If provided, it must be an integer bigger than 0.
- alias - directory alias
- path - directory that contains files
- upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
- upload_deny: ['all']
- upload_max_size: 2M
You can see the full list of roots options here. To use them, convert camelCased option name to under_scored name.
Use multiple upload folder by instance
You can set multiple upload root folder by instance configuration.
If you have configured your instance with /uploads
path, you can provide
an additional folder as a home folder (e.g. for a multi-users application) when accessing to the instance URL :
/elfinder/{instance}/{homeFolder}
or /efconnect/{instance}/{homeFolder}
For example, accessing to /elfinder/acmeInstance/bob
URL will open up elfinder with
/uploads/bob
as root directory which only contains Bob's files.
Then, accessing to /elfinder/acmeInstance/alice
URL will re-use your instance,
but open up elfinder with /uploads/alice
folder as root directory, containing only Alice's files.
To use this feature, you must provide the instance name in the URL, and of course be sure to set proper write/read permissions on home folders.
Note: this feature is only available with LocalFileSystem
driver.
All versions of fm-elfinder-bundle with dependencies
symfony/framework-bundle Version ~2.4|~3.0
symfony/twig-bundle Version ~2.4|~3.0
symfony/form Version ~2.4|~3.0
helios-ag/fm-elfinder-php-connector Version ~2.0
components/elfinder Version ~2.0