Download the PHP package elao/mce-media-bundle without Composer

On this page you can find all versions of the php package elao/mce-media-bundle. 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 mce-media-bundle

Elao MceMedia Bundle

This bundle handles the integration of File Manager and Image Manager plugins inside TinyMCE

We added as an extra feature an input of type asset that is linked to the Image Manager. What's that ?

It adds next to the text input, an extra button to upload any image to the Image Manager. Once the upload is done, a preview of the image is shown.

Once the form is saved, it stores the image path.

Changelog

Download & Install

Via composer:

// composer.json
{
    // ...
    "require": {
        // ...
        "elao/mce-media-bundle": "1.1.*"
    }
}

Update your composer.phar:

$ php composer.phar update

Include it in your Kernel class:

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        new Elao\Bundle\MceMediaBundle\ElaoMceMediaBundle(),
        ...
    );
}

How to use the asset field ?

First, you must include the js file /bundles/elaomcemedia/js/input_asset.js, the TinyMCE script, and the file tiny_mce/plugins/imagemanager/

Then you just need to transform your text input into an asset input:

<script type="text/javascript">
    $('myInput').inputAsset();
</script>

Different configurations are available for the field:

Authenticator for Image Manager & File Manager

We need to modify the file /tinymce/plugins/imagemanger/config.php or/and /tinymce/plugins/filemanger/config.php

'authenticator' = ExternalAuthenticator
'ExternalAuthenticator.external_auth_url' = /_tinymce/login
'ExternalAuthenticator.secret_key' = someSecretKey

Configuration under Symfony

[yml]
# config.yml
elao_mce_media:
    is_login: false # Default nobody has access to the manager, but if true, the role is ignored
    role: ROLE_ADMIN # The role that the user must have in order to access to the manager
    secret_key: someSecretKey
    configs:
        my.key: value

[yml]
# routing.yml
elao_mce_media:
    resource: @ElaoMceMediaBundle/Resources/config/routing.yml

Things to configure with the application


All versions of mce-media-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
symfony/framework-bundle Version >=2.1,<2.4-dev
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 elao/mce-media-bundle contains the following files

Loading the files please wait ....