Download the PHP package qjon/ri-filemanager without Composer

On this page you can find all versions of the php package qjon/ri-filemanager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ri-filemanager

ri-filemanager alt=

Symfony2 filemanager bundle

Requirements

JavaScript
PHP

Demo

Here you can find DEMO.

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

Usage

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

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

<div class="filemanager" ng-app="fm">
    <h1>{% verbatim %}{{'FILEMANAGER' | translate}}{% endverbatim %}</h1>
    <div class="animation" ng-view  style="width: 100%;"></div>
</div>

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

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 https://github.com/stfalcon/TinymceBundle).

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.

<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', {'callback': 'fos.Router.setData'}) }}"></script>
<script src="{{ asset('bundles/rifilemanager/js/tinymce_plugin.js') }}"></script>

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.

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

That is all, everything should work.


All versions of ri-filemanager with dependencies

PHP Build Version
Package Version
Requires symfony/symfony Version >=2.6.1
doctrine/orm Version ~2.2,>=2.2.3,<2.5
doctrine/dbal Version <2.5
doctrine/doctrine-bundle Version ~1.2
friendsofsymfony/jsrouting-bundle Version >=1.5.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package qjon/ri-filemanager contains the following files

Loading the files please wait ....