This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

H5P Bundle for Symfony

Installs: 44

Dependents: 0

Suggesters: 0

Security: 0


0.3.3 2019-03-15 13:04 UTC

This package is auto-updated.

Last update: 2021-09-15 23:29:34 UTC


Bundle to integrate H5P into Symfony. This bundle is a port of the H5P Drupal module. For more info about H5P see

This bundle was tested on Symfony 3.4


Install with composer

composer require studit/h5p-bundle

Enable the bundle in AppKernel.php

$bundles = array(
    // ...
    new Emmedy\H5PBundle\EmmedyH5PBundle(),

Add the H5P assets to the bundle

php bin/console h5p-bundle:include-assets
php bin/console assets:install --symlink

Add required tables and relations to the database

php bin/console doctrine:schema:update --force 

Enable the routing in routing.yml

    resource: "@EmmedyH5PBundle/Resources/config/routing_demo.yml"
    prefix:   /

    resource: "@EmmedyH5PBundle/Resources/config/routing.yml"
    prefix:   /

emmedy_h5p.demo is optional. It can be used as an example how to use H5P within Symfony and test if this bundle is working properly.


Configure the bundle in config.yml. (Watch for the underscore between h5 and p)

    use_permission: true # This is false by default to let the demo work out of the box.
    storage_dir: h5p # Location to store all H5P libraries and files
    web_dir: web # Location of the public web directory

For all configurations see Configuration.php


First add a virtual host that points to you project. Then in your browser go to http://<your virtualhost>/h5p/list


Not everything is ported yet. The following things still need to be done:

  • Download package
  • Embed package
  • Store usage data and points