Download the PHP package jorisdugue/h5p-bundle without Composer
On this page you can find all versions of the php package jorisdugue/h5p-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jorisdugue/h5p-bundle
More information about jorisdugue/h5p-bundle
Files in jorisdugue/h5p-bundle
Package h5p-bundle
Short Description H5P Bundle for Symfony 5, 6 and Symfony 7
License MIT
Informations about the package h5p-bundle
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
This bundle was tested on :
- Symfony 4.X
- Symfony 5.X,
- Symfony 6.X,
- Symfony 7.X-dev
Version Supported | Symfony 3 | Symfony 4 | Symfony 5 | Symfony 6 | Symfony 7 |
---|---|---|---|---|---|
2.X | ❌ | ❌ | ✅ | ✅ | ✅ |
1.X | H5PBundle for Symfony 2.X and 3.X | ✅ | ✅ | ❌ | ❌ |
Prerequisite
You need install doctrine annotations and orm before running this installation
Installation
Install with composer
Enable the bundle in AppKernel.php
Warning for Windows : You need launch the cmd in administrator or using option -c
Add the H5P assets to the bundle
and reexecute ...
Add required tables and relations to the database
or
`
Enable the routing in routes.yaml
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
For SF4:
Configure the bundle in services.yaml
. (Watch for the underscore between h5 and p)
For Symfony 5:
Configure the bundle in packages > h5pBundle.yml
.
For all configurations see Configuration.php
if you are using permissions here is the current list of permissions in the bundle :
Permission | Description |
---|---|
ROLE_H5P_DOWNLOAD_ALL | Download the H5P packages |
ROLE_H5P_EMBED_ALL | Embed/Share to everyone the H5P |
ROLE_H5P_CREATE_RESTRICTED_CONTENT_TYPES | Restrict for user the type install |
ROLE_H5P_UPDATE_LIBRARIES | Allow/Disallow the update of package H5P |
ROLE_H5P_INSTALL_RECOMMENDED_LIBRARIES | Allow/Disallow to install libraries |
ROLE_H5P_COPY_ALL | Allow/Disallow to copy H5P (If you want to Download, you must install to have this role too) |
Usage
First add a virtual host that points to you project. Then in your browser go to http://<your virtualhost>/h5p/list
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:
- 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:
Run the static analyzer like that:
All versions of h5p-bundle with dependencies
doctrine/orm Version ^2.14.1
guzzlehttp/guzzle Version ^7.9
h5p/h5p-core Version 1.27
h5p/h5p-editor Version ^1.25
symfony/framework-bundle Version ~5.0|~6.0|~7.0
symfony/serializer Version ~5.0|~6.0|~7.0
twig/extra-bundle Version ^3.0
doctrine/doctrine-bundle Version ^2.0
symfony/security-bundle Version ~5.0|~6.0|~7.0
symfony/asset Version ~5.0|~6.0|~7.0
symfony/form Version ~5.0|~6.0|~7.0
ext-json Version *
symfony/intl Version ~5.0|~6.0|~7.0