The MediaBundle is media library for managing entity files. Use it on your risk.
| SensioLabs Insight | Travis CI | Scrutinizer CI |
|---|---|---|
![]() |
![]() |
- save uploaded file in to database via DoctrineORM
- all settings, templates and translations is highly customized
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
$ composer require development-x/media-bundle "~1"<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new MediaBundle\MediaBundle(),
);
// ...
}
// ...
}
twig:
form_themes:
- 'MediaBundle:Form:fields.html.twig'
Plugin installation could be found here. When you done with install, just load js * css files
<link type="text/css" href="{{ asset('library/bootstrap-fileinput/css/fileinput.min.css') }}" rel="stylesheet" media="all" />
<script type="text/javascript" src="{{ asset('library/bootstrap-fileinput/js/fileinput.min.js') }}"></script>
However, if you are interested and want to send a bug fix, new functionality or better realization, just send a pull request :)
This bundle is under the MIT license. See the complete license in the bundle



