PHPackages                             jorisdugue/h5p-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jorisdugue/h5p-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

jorisdugue/h5p-bundle
=====================

H5P Bundle for Symfony 5, 6 and Symfony 7

3.0.4(1y ago)1131.7k↓50%17MITPHPPHP &gt;= 8.1CI failing

Since Dec 29Pushed 1y ago3 watchersCompare

[ Source](https://github.com/jorisdugue/h5p-bundle)[ Packagist](https://packagist.org/packages/jorisdugue/h5p-bundle)[ RSS](/packages/jorisdugue-h5p-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (41)Used By (0)

H5PBundle
=========

[](#h5pbundle)

Bundle to integrate H5P into Symfony. This bundle is a port of the H5P Drupal module. For more info about H5P see [H5P.org](https://h5p.org)

This bundle was tested on :

- Symfony 4.X
- Symfony 5.X,
- Symfony 6.X,
- Symfony 7.X-dev

Version SupportedSymfony 3Symfony 4Symfony 5Symfony 6Symfony 73.X❌❌❌✅✅2.X❌❌✅✅❌1.X[H5PBundle for Symfony 2.X and 3.X](https://github.com/Emmedy/h5p-bundle)✅✅❌❌Prerequisite
------------

[](#prerequisite)

You need install orm before running this installation

```
composer require orm
```

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

[](#installation)

Install with composer

```
composer require jorisdugue/h5p-bundle
```

Enable the bundle in `AppKernel.php`

```
return [
// ...
    \Studit\H5PBundle\StuditH5PBundle::class => ['all' => true]
]
```

**Warning for Windows** : You need launch the cmd in administrator or using option `-c`

Add the H5P assets to the bundle

```
php bin/console h5p-bundle:IncludeAssetsCommand
php bin/console assets:install --symlink
```

and reexecute ...

```
# For linux and mac only or windows admin
php bin/console h5p-bundle:IncludeAssetsCommand
# For all without admin perms
php bin/console h5p-bundle:IncludeAssetsCommand -c
```

Add required tables and relations to the database

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

or

```
php bin/console make:migrations
```

Enable the routing in `routes.yaml`

```
studit_h5p.demo:
  resource: "@StuditH5PBundle/Resources/config/routing_demo.yml"
  prefix: /

studit_h5p:
  resource: "@StuditH5PBundle/Resources/config/routes.yaml"
  prefix: /
```

studit\_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.

Configuration
-------------

[](#configuration)

For SF4: Configure the bundle in `services.yaml`. (Watch for the underscore between h5 and p)

```
parameters:
  studit_h5_p:
    use_permission: true # This is false by default to let the demo work out of the box.
    storage_dir: / # Location to store all H5P libraries and files
    web_dir: public # Location of the public web directory
    export: 3 #for all
    embed: 3 #for all
```

For Symfony 5: Configure the bundle in `packages > studit_h5_p.yaml`.

```
studit_h5_p:
  use_permission: true # This is false by default to let the demo work out of the box.
  storage_dir: / # Location to store all H5P libraries and files
  web_dir: public # Location of the public web directory
  export: 3 #for all
  embed: 3 #for all
```

For all configurations see [Configuration.php](DependencyInjection/Configuration.php)

if you are using permissions here is the current list of permissions in the bundle :

PermissionDescriptionROLE\_H5P\_DOWNLOAD\_ALLDownload the H5P packagesROLE\_H5P\_EMBED\_ALLEmbed/Share to everyone the H5PROLE\_H5P\_CREATE\_RESTRICTED\_CONTENT\_TYPESRestrict for user the type installROLE\_H5P\_UPDATE\_LIBRARIESAllow/Disallow the update of package H5PROLE\_H5P\_INSTALL\_RECOMMENDED\_LIBRARIESAllow/Disallow to install librariesROLE\_H5P\_COPY\_ALLAllow/Disallow to copy H5P (If you want to Download, you must install to have this role too)Usage
-----

[](#usage)

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

Todo
----

[](#todo)

Working:

- Store usage data and points (only if user is connected)
- Download a H5P
- Upload H5P
- Update / Install H5P library
- Store usage data and points

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

- Upload library. Currently only H5P default libraries can be selected from Hub. (need custom h5p for testing )

Changelog:
----------

[](#changelog)

- Using dev version with restrict tag for prevent Break Change
- Implement missing road and resolve compatibility of H5P-editor
- Fix bug and update the readme
- Fix many bug ... and update to SF5 :)
- Fix bug with missing link img
- Fix Download package
- Store usage data and points

Developing:
-----------

[](#developing)

Run the static analyzer like that:

```
php -d memory_limit=-1 vendor/bin/phpstan.phar analyze .
```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance44

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 79.9% of commits — single point of failure

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 ~52 days

Recently: every ~25 days

Total

37

Last Release

437d ago

Major Versions

v1.9.0 → v2.0.02023-08-23

2.2.1 → 3.0.02024-11-10

PHP version history (4 changes)v1.0.0PHP ^7.2.5

v1.8.0PHP ^7.2.5 || ^8.0

v1.9.0PHP &gt;= 7.2.5

3.0.0PHP &gt;= 8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe05c9786cbd5204d9f656ddf19095b03662a978d524427c088a36b5d26e1bc2?d=identicon)[zariuke](/maintainers/zariuke)

---

Top Contributors

[![jorisdugue](https://avatars.githubusercontent.com/u/18118107?v=4)](https://github.com/jorisdugue "jorisdugue (167 commits)")[![michealmouner](https://avatars.githubusercontent.com/u/2089749?v=4)](https://github.com/michealmouner "michealmouner (34 commits)")[![tuxes3](https://avatars.githubusercontent.com/u/5341293?v=4)](https://github.com/tuxes3 "tuxes3 (3 commits)")[![kdaniel95](https://avatars.githubusercontent.com/u/40911283?v=4)](https://github.com/kdaniel95 "kdaniel95 (2 commits)")[![pierre-kubica](https://avatars.githubusercontent.com/u/24812106?v=4)](https://github.com/pierre-kubica "pierre-kubica (1 commits)")[![s4ddly](https://avatars.githubusercontent.com/u/110701663?v=4)](https://github.com/s4ddly "s4ddly (1 commits)")[![zoomtronic](https://avatars.githubusercontent.com/u/10069282?v=4)](https://github.com/zoomtronic "zoomtronic (1 commits)")

---

Tags

h5ph5p-pluginhmtl5javascriptjsphpsymfonysymfony-bundlesymfony4symfony5symfony6symfony7phpsymfonycontentinteractiveh5p

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jorisdugue-h5p-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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