Download the PHP package opifer/media-bundle without Composer

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

Build Status SensioLabsInsight

MediaBundle

A Symfony Media Manager. Inspired by SonataMediaBundle's use of Media Providers to add different Media types.

Note: This bundle is still very much a work in progress, so BC-breaks will happen until the first stable release.

Installation

Install FOSJsRoutingBundle according to it's documentation

Add the bundle to your composer.json

composer require opifer/media-bundle dev-master

Register the bundle and its dependencies in app/AppKernel.php

You should create your own Media entity that extends Opifer\MediaBundle\Model\Media.

And reference to it in your app/config/config.yml

Using the media manager

This bundle comes with an AngularJS media manager included. To use it, you'll need to include some necessary javascript files and CSS files into your templates.

First, make sure you installed all asset dependencies. You can download them manually, copy the bower.json file to your own bundle and run bower install or copy the bower.json content to your own bower dependencies.

Then, add the dependencies to your templates.

Then, create an Angular module that requires the following modules:

Make sure you add the angular module in your template by adding the the file to your {% javascripts %} list. And initialize the Angular App in your template:

To make the mediamanager accessible in the browser, add the routes to your routing.yml:

To use the mediamanager in your own layout, override OpiferMediaBundle::base.html.twig:

Adding a mediapicker to a form

Create a relationship between the media entity and any other entity. For example, Users must be able to add media to a Content item.

In your content FormType, add the mediapicker form type:

Documentation


All versions of media-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
symfony/symfony Version ~2.5
doctrine/orm Version ~2.4
doctrine/doctrine-bundle Version ~1.2
twig/extensions Version ~1.0
aws/aws-sdk-php Version 2.5.*
gedmo/doctrine-extensions Version ~2.3
jms/serializer-bundle Version ~1.0
knplabs/knp-gaufrette-bundle Version *@dev
liip/imagine-bundle Version ~1.2.6
pagerfanta/pagerfanta Version ~1.0
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 opifer/media-bundle contains the following files

Loading the files please wait ....