Skip to content


Subversion checkout URL

You can clone with
Download ZIP
[READ-ONLY] Subtree split of the Kunstmaan MediaBundle -- master at Kunstmaan/KunstmaanBundlesCMS
Failed to load latest commit information.
AdminList Text files should end with a newline character
Command Don't fail outright on bad pdf
Controller Change createAndRedirect from private to protected
DataFixtures/ORM Text files should end with a newline character
DependencyInjection blacklist extensions
Entity Update Media.php
EventListener Text files should end with a newline character
Form Show internal name field for media folders
Helper Fixed 404 slideshare embed code
Repository fix editing top media folder
Resources refactor slug router
Tests refactored `MediaValidator`, fixed missing `TOO_NARROW_ERROR` constant
Validator/Constraints Sensio Insights fixes and new bundle testing setup
.bowerrc Update the admin interface and demo site generator
.gitignore Files should not be executable
.travis.yml Disable the PHP memory limit on travis Folder is nested tree / PDF previews / Keep media name / Move media /…
KunstmaanMediaBundle.php Fix insight issues
LICENSE Text files should end with a newline character make Imagick dependency optional (only when pdf previews are enabled) version in doc
bower.json Update the admin interface and demo site generator
build.xml Travis configs
composer.json Fixed bundle specific kunstmaan dependencies
phpunit.xml.dist Travis configs


Build Status Total Downloads Latest Stable Version Analytics

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.

KunstmaanMediaBundle View more screenshots and information


This bundle is compatible with all Symfony 2.3.* releases. More information about installing can be found in this line by line walkthrough of installing Symfony and all our bundles, please refer to the Getting Started guide and enjoy the full blown experience.

Symfony 2.2

If you want to use this bundle for a Symfony 2.2 release, use the 2.2 branch.


If you want to use your own api key for SoundCloud, you can define this in the config.yml of your application but it works fine without it as well.

    soundcloud_api_key: YOUR_CLIENT_ID


If you want to add a nifty tooltip to your media chooser in the admin, you can just add the following to your form type:

          'pattern' => 'KunstmaanMediaBundle_chooser',
          'mediatype' => 'image',
          'attr' => array('info_text' => 'YOUR TOOLTIP TEXT'),

Generating PDF preview thumbnails

For this functionality to work, you need to install the ImageMagick extension with PDF support (using Ghostscript). You will also have to make sure that the Ghostscript executable (gs) can be found in the path of the user that is executing the code (apache/www or a custom user depending on your setup).

You can determine that path by running which gs on the command line in Linux/OS X.

To install Ghostscript on Mac OS X you can use brew install gs.

On OS X with apache you will probably have to add that path to the apache environment settings in /System/Library/LaunchDaemons/org.apache.httpd.plist. Make sure it contains the following :


Where /path/to/gs is just the actual path where the gs binary is stored.

NOTE: This functionality has to be enabled by setting the enable_pdf_preview configuration option to true, ie. :

    enable_pdf_preview: true
Something went wrong with that request. Please try again.