PHPackages                             tweedegolf/media-bundle - 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. [Image &amp; Media](/categories/media)
4. /
5. tweedegolf/media-bundle

AbandonedArchivedLibrary[Image &amp; Media](/categories/media)

tweedegolf/media-bundle
=======================

Media manager bundle for Symfony and tinyMCE

v0.3.0(7y ago)99602[2 issues](https://github.com/tweedegolf/media-bundle/issues)MITPHPPHP &gt;=5.6

Since Dec 10Pushed 7y ago2 watchersCompare

[ Source](https://github.com/tweedegolf/media-bundle)[ Packagist](https://packagist.org/packages/tweedegolf/media-bundle)[ RSS](/packages/tweedegolf-media-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (12)Versions (11)Used By (0)

TweedeGolf MediaBundle
======================

[](#tweedegolf-mediabundle)

The TweedeGolf MediaBundle provides a ready-to-use media manager for your Symfony project. Although it is especially designed to work with tinyMCE, the media bundle could be used for several other purposes.

[![screenshot of the media manger modal](https://raw.githubusercontent.com/tweedegolf/media-bundle/master/doc/screen.png)](https://raw.githubusercontent.com/tweedegolf/media-bundle/master/doc/screen.png)

In essence, the TweedeGolf MediaBundle provides a File Entity and a controller that implements a JSON API for this entity

Dependencies
------------

[](#dependencies)

This repository only provides the Symfony bundle and can be installed via [composer](https://getcomposer.org/). The front-end scripts used to display the modal can be found on  and can be installed using [bower](http://bower.io).

Composer dependencies:

- [VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle)
- [LiipImagineBundle](https://github.com/liip/LiipImagineBundle)

Bower dependencies:

- [TweedeGolfMediaBrowser](https://github.com/tweedegolf/media-browser)

Installation and configuration
------------------------------

[](#installation-and-configuration)

A good starting point to setup a Symfony project with [bower](http://bower.io) and [gulp](http://gulpjs.com/) is the [TweedeGolf Symfony Okoa Project](https://github.com/tweedegolf/symfony-okoa).

Using [Composer](https://getcomposer.org/) add the bundle to your requirements, running `composer require tweedegolf/media-bundle`.

For installation instructions of the [media browser, see the repository](https://github.com/tweedegolf/media-browser).

### Basic configuration

[](#basic-configuration)

Define mappings in your configuration file `config/packages/tweede_golf_media.yaml` (or `app/config/config.yml`):

You can configure the maximum number of items displayed per page.

You **must** configure the name of your File entity.

```
tweede_golf_media:
    max_per_page: 24  # this is optional (default is 18)
    file_entity: 'App:File'  # this is required
```

This is an example of File entity you can define:

```
