PHPackages                             lukabutina/h5p-custom-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. [Framework](/categories/framework)
4. /
5. lukabutina/h5p-custom-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

lukabutina/h5p-custom-bundle
============================

H5P Bundle for Symfony 4 and Symfony 5

00PHP

Since Feb 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lukabutina/h5p-custom-bundle)[ Packagist](https://packagist.org/packages/lukabutina/h5p-custom-bundle)[ RSS](/packages/lukabutina-h5p-custom-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)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)

For Symfony 3.X =&gt; [H5PBundle for Symfony 2.X and 3.X](https://github.com/Emmedy/h5p-bundle)

This bundle was tested on Symfony 4.X and Symfony 5.X

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

Add the H5P assets to the bundle

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

and reexecute ...

```
php bin/console h5p-bundle:IncludeAssetsCommand
```

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 > h5pBundle.yml`.

```
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)

- 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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3330abe8ca561b40678009eeece39105a7db1bbf432618599b5d28ef4c8cc4fa?d=identicon)[lukabutina](/maintainers/lukabutina)

---

Top Contributors

[![lukabutina-easybi](https://avatars.githubusercontent.com/u/80878131?v=4)](https://github.com/lukabutina-easybi "lukabutina-easybi (2 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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