PHPackages                             unifik/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. unifik/media-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

unifik/media-bundle
===================

The media bundle of the symfony-unifik distribution

0.1.2(9y ago)15783[6 issues](https://github.com/egzakt/UnifikMediaBundle/issues)1MITJavaScript

Since Jul 12Pushed 7y ago8 watchersCompare

[ Source](https://github.com/egzakt/UnifikMediaBundle)[ Packagist](https://packagist.org/packages/unifik/media-bundle)[ Docs](https://github.com/unifik/symfony-unifik)[ RSS](/packages/unifik-media-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (1)

UnifikMediaBundle
=================

[](#unifikmediabundle)

Installation
------------

[](#installation)

Using **composer** file :

```
"require": {
    //...,
    "unifik/media-bundle": "dev-master"
},

```

Add the following line to **AppKernel.php** :

```
new Unifik\MediaBundle\UnifikMediaBundle(),

```

In **app/config/routing.yml** add the following:

```
unifik_media_backend:
    resource: "@UnifikMediaBundle/Resources/config/routing_backend.yml"
    prefix:   /admin/media

```

To activate the media manager with CKEditor once the bundle is loaded, you must register the plugin in the ckeditor config (**app/config/config.yml**):

```
external_plugins:
    unifikmediamanager:
        path: bundles/unifikmedia/backend/js/ckeditor/plugin/unifikmediamanager

```

You must also add the `'Insert_media'` button in one toolbar. An example of config:

```
trsteel_ckeditor:
  toolbar_groups:
      [...]
      insert: ['Insert_media', 'Image', 'Flash', 'Table', 'HorizontalRule']
      [...]

```

To get the proper media select field in your form, your need to add those lines in your form theme:

```
{% block media_select_widget %}
    {% include 'UnifikMediaBundle:Backend/Form:fields.html.twig' with {'widget_attributes': block('widget_attributes')} %}
{% endblock %}

```

This bundle use [FOSRoutingBundle](https://github.com/FriendsOfSymfony/FOSJsRoutingBundle). So you need to include the following js files:

```
{% javascripts
    'bundles/fosjsrouting/js/router.js'
    'js/fos_js_routes.js'
%}

{% endjavascripts %}

```

And run this command: `app/console fos:js-routing:dump`

Include the `dynamic_loader.js` file required to add the Media Bundle CKEditor Plugin:

```
{% javascripts
    '@UnifikMediaBundle/Resources/public/backend/js/dynamic_loader.js'
%}

{% endjavascripts %}

```

Include the `liip imagine routing` in your `config.yml` file:

```
_liip_imagine:
    resource: "@LiipImagineBundle/Resources/config/routing.xml"

```

Bundle requirements
-------------------

[](#bundle-requirements)

- unifik/doctrine-behaviors-bundle
- liip/imagine-bundle
- friendsofsymfony/jsrouting-bundle

Add Media field
---------------

[](#add-media-field)

To link media with entity, add the manyToOne relation as follow:

```
manyToOne:
  myMedia:
    targetEntity: Unifik\MediaBundle\Entity\Media

```

To generate de media field, add this in your form type: (default type is image)

```
->add('image2', 'media_select')

```

To choose an other media type: (available types are: image, video, embedvideo and document)

```
->add('image2', 'media_select', array('type' => 'image'))

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~242 days

Total

4

Last Release

3335d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/878737?v=4)[Jean-François Côté](/maintainers/tiois)[@tiois](https://github.com/tiois)

---

Top Contributors

[![pascallapointe](https://avatars.githubusercontent.com/u/3847945?v=4)](https://github.com/pascallapointe "pascallapointe (64 commits)")[![yanickouellet](https://avatars.githubusercontent.com/u/3275574?v=4)](https://github.com/yanickouellet "yanickouellet (51 commits)")[![tiois](https://avatars.githubusercontent.com/u/878737?v=4)](https://github.com/tiois "tiois (29 commits)")[![pmdc](https://avatars.githubusercontent.com/u/3174722?v=4)](https://github.com/pmdc "pmdc (17 commits)")[![patchampoux](https://avatars.githubusercontent.com/u/7132345?v=4)](https://github.com/patchampoux "patchampoux (9 commits)")[![hubertperron](https://avatars.githubusercontent.com/u/874403?v=4)](https://github.com/hubertperron "hubertperron (4 commits)")[![ndenoncourt](https://avatars.githubusercontent.com/u/8125244?v=4)](https://github.com/ndenoncourt "ndenoncourt (2 commits)")

---

Tags

mediacmsunifik

### Embed Badge

![Health badge](/badges/unifik-media-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/unifik-media-bundle/health.svg)](https://phpackages.com/packages/unifik-media-bundle)
```

###  Alternatives

[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[kunstmaan/media-bundle

To build your perfect website you probably need images, video's or maybe even a presentation too. The Kunstmaan Media Bundle handles all those media assets and centralizes them so you can find your content just the way you like it: fast and efficiently. No central asset management module is useful without some pretty advanced image editing functionality. To provide this we have integrated the Aviary image editing service right from the interface.

41134.7k7](/packages/kunstmaan-media-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k60](/packages/open-dxp-opendxp)[okipa/laravel-medialibrary-ext

Extra features for spatie/laravel-medialibrary package.

1011.2k](/packages/okipa-laravel-medialibrary-ext)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
