PHPackages                             qjon/ri-filemanager - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. qjon/ri-filemanager

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

qjon/ri-filemanager
===================

File manager bundle

v1.3.1(10y ago)2581[1 issues](https://github.com/qjon/ri-filemanager/issues)MITPHP

Since Jul 28Pushed 10y ago2 watchersCompare

[ Source](https://github.com/qjon/ri-filemanager)[ Packagist](https://packagist.org/packages/qjon/ri-filemanager)[ RSS](/packages/qjon-ri-filemanager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (5)Versions (12)Used By (0)

ri-filemanager [![alt=""](https://camo.githubusercontent.com/e40815714c6afe43ebde7cf269b9fc9cb1fe8b6e4240c6b57f13d125b2afd7f8/68747470733a2f2f7472617669732d63692e6f72672f716a6f6e2f72692d66696c656d616e616765722e737667)](https://camo.githubusercontent.com/e40815714c6afe43ebde7cf269b9fc9cb1fe8b6e4240c6b57f13d125b2afd7f8/68747470733a2f2f7472617669732d63692e6f72672f716a6f6e2f72692d66696c656d616e616765722e737667)
==========================================================================================================================================================================================================================================================================================================================================================================================================================

[](#ri-filemanager-)

Symfony2 filemanager bundle

Requirements
------------

[](#requirements)

##### JavaScript

[](#javascript)

- lodash
- jquery
- bootstrap
- angular
- angular-route
- angular-animate
- angular-resource
- angular-strap
- angular-translate
- angular-translate-loader-static-files
- angular-growl-2
- ng-flow
- cropper

##### PHP

[](#php)

- stfalcon/tinymce-bundle
- friendsofsymfony/jsrouting-bundle

Demo
----

[](#demo)

Here you can find [DEMO](http://filemanager.ignaszewski.pl/filemanager/index#/dir/0).

Instalation
-----------

[](#instalation)

This tool is ready to use, you dont need to do anything

1. Add to your composer.json

    ..., "require": { ..., "qjon/ri-filemanager": "dev-master" }
2. Add to AppKernel.php

    public function registerBundles() { $bundles = array( ... new FOS\\JsRoutingBundle\\FOSJsRoutingBundle(), new RI\\FileManagerBundle\\RIFileManagerBundle(), );

    ```
     ...

    ```

    }

The first bundle is used to use Symfony routing in JS, the second is our filemanager bundle.

3. Add routing

    RIFileManagerBundle: resource: "@RIFileManagerBundle/Resources/config/routing.yml" prefix: /filemanager
4. Set proper configuration in app/config.yml

    assetic: ... bundles: \["RIFileManagerBundle"\]

    ...

    ri\_file\_manager: upload\_dir: /uploads resize: true resize\_max\_width: 1600 allow\_change\_language: true default\_language: pl\_PL mime\_types: images: \['image/jpg', 'image/jpeg', 'image/png', 'image/gif', 'image/png'\] audio: \['audio/mpeg', 'audio/x-ms-wma', 'audio/vnd.rn-realaudio', 'audio/x-wav'\] video: \['video/mpeg', 'video/mp4', 'video/quicktime', 'video/x-ms-wmv'\] archive: \['application/zip'\] others: - 'application/pdf' dimensions: - name: Crop size one width: 800 height: 500 - name: Crop size two width: 1200 height: 400

- **upload\_dir** (string) - name of dir in *web* directory when will be upload all files
- **resize** (bool) - all uploaded image will be resized if they are too large
- **resize\_max\_width** (int) - works only with *resize* = *true*
- **allow\_change\_language** (bool) - if *true* display dropdown to change language, if *false* the dropdown is not shown: default *true*
- **default\_language** (string) - default language of the app (now available: en\_EN, pl\_PL), default: *en\_EN*
- **mime\_types** (array) - list of all file types which can be uploaded (if nothing set all file types are available)
    - **image** (array) - list of mime file types which should be interpreted as image type
    - **audio** (array) - list of mime file types which should be interpreted as audio type
    - **video** (array) - list of mime file types which should be interpreted as video type
    - **archive** (array) - list of mime file types which should be interpreted as archive type
    - **others** (array) - list of mime file types which should be available for upload and does not match to any above categories
- **dimensions** (array) - predefined list of available crop dimensions

Usage
-----

[](#usage)

##### Standalone version

[](#standalone-version)

This is the simple way to use this bundle. In your twig template you should include:

1. CSS template (include all CSS files)

    {% include 'RIFileManagerBundle:Default:css.html.twig' %}
2. JS template (include third part libraries, application and templates)

    {% include 'RIFileManagerBundle:Default:javascript\_min.html.twig' %}

Then you should initialize application where you can set some configuration

```

    var fm = angular.module('fm', ['filemanager'])
            .config(['configProviderProvider', function (ConfigProvider) {
                ConfigProvider.setConfig({{ filemanager_configuration|json_encode|raw }})
            }]);

    {% verbatim %}{{'FILEMANAGER' | translate}}{% endverbatim %}

```

All above configuration you find in *Resources/views/Default/index.html.twig*

##### TinyMce file and image plugin

[](#tinymce-file-and-image-plugin)

This bundle can be used as TinyMce file and image plugin. First you should prepare page with TinyMce editor. You can use *stfalcon/tinymce-bundle* (read installation manual on ).

If you have working example of TinyMce editor, you can attach *filemanager* plugin.

```
stfalcon_tinymce:
    ...
    theme:
       advanced:
            ...
            file_browser_callback: 'myFileBrowser'
            ...

```

Then you should include tinymce JS plugin file and routing files, which open select image dialog.

```

```

or simple one line

```
{% include 'RIFileManagerBundle:Default:javascript_tinymce.html.twig' %}

```

After that you should change filemanager application configuration and set non stand alone version.

```

    var fm = angular.module('fm', ['filemanager'])
        .config(['configProviderProvider', function (configProviderProvider) {
            configProviderProvider.setConfig({
                standAlone: false
            })
        }]);

```

That is all, everything should work.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~10 days

Total

9

Last Release

3862d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b421d8f56dbb29c0aef7b13f388296a47ad2127438aeb6723cf3a7422a9fe083?d=identicon)[qjon](/maintainers/qjon)

---

Top Contributors

[![qjon](https://avatars.githubusercontent.com/u/7398979?v=4)](https://github.com/qjon "qjon (65 commits)")

---

Tags

filemanager tinymce

### Embed Badge

![Health badge](/badges/qjon-ri-filemanager/health.svg)

```
[![Health](https://phpackages.com/badges/qjon-ri-filemanager/health.svg)](https://phpackages.com/packages/qjon-ri-filemanager)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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