{"id":26343700,"url":"https://github.com/jorisdugue/h5p-bundle","last_synced_at":"2025-08-20T09:33:04.512Z","repository":{"id":45881087,"uuid":"227700110","full_name":"jorisdugue/h5p-bundle","owner":"jorisdugue","description":"A bundle to integrate h5p into your Symfony project.","archived":false,"fork":false,"pushed_at":"2024-10-28T13:54:54.000Z","size":219,"stargazers_count":11,"open_issues_count":1,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-28T17:10:08.558Z","etag":null,"topics":["h5p","h5p-plugin","hmtl5","javascript","js","php","symfony","symfony-bundle","symfony4","symfony5","symfony6","symfony7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jorisdugue.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-12T21:30:37.000Z","updated_at":"2024-10-28T13:54:14.000Z","dependencies_parsed_at":"2024-04-08T18:44:45.041Z","dependency_job_id":"9c30176e-0b8e-41ed-8c05-7d68e3aff3af","html_url":"https://github.com/jorisdugue/h5p-bundle","commit_stats":{"total_commits":125,"total_committers":7,"mean_commits":"17.857142857142858","dds":"0.31200000000000006","last_synced_commit":"b3a8b31d26760bef5cf7efecd4657ba646e6b1e3"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorisdugue%2Fh5p-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorisdugue%2Fh5p-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorisdugue%2Fh5p-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorisdugue%2Fh5p-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jorisdugue","download_url":"https://codeload.github.com/jorisdugue/h5p-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008630,"owners_count":21032556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["h5p","h5p-plugin","hmtl5","javascript","js","php","symfony","symfony-bundle","symfony4","symfony5","symfony6","symfony7"],"created_at":"2025-03-16T05:17:48.401Z","updated_at":"2025-04-09T09:05:31.421Z","avatar_url":"https://github.com/jorisdugue.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# H5PBundle\n\nBundle to integrate H5P into Symfony. This bundle is a port of the H5P Drupal module. For more info about H5P\nsee [H5P.org](https://h5p.org)\n\nThis bundle was tested on :\n\n- Symfony 4.X\n- Symfony 5.X,\n- Symfony 6.X,\n- Symfony 7.X-dev\n\n| Version Supported | Symfony 3                                                                 | Symfony 4 | Symfony 5 | Symfony 6 | Symfony 7 |\n|-------------------|---------------------------------------------------------------------------|-----------|-----------|-----------|-----------|\n| 3.X               | \u0026#x274C;                                                                  | \u0026#x274C;  | \u0026#x274C;  | \u0026#x2705;  | \u0026#x2705;  |\n| 2.X               | \u0026#x274C;                                                                  | \u0026#x274C;  | \u0026#x2705;  | \u0026#x2705;  | \u0026#x274C;  |\n| 1.X               | [H5PBundle for Symfony 2.X and 3.X](https://github.com/Emmedy/h5p-bundle) | \u0026#x2705;  | \u0026#x2705;  | \u0026#x274C;  | \u0026#x274C;  |\n\nPrerequisite\n------------\n\nYou need install orm before running this installation\n\n```bash\ncomposer require orm\n```\n\nInstallation\n------------\n\nInstall with composer\n\n``` bash\ncomposer require jorisdugue/h5p-bundle\n```\n\nEnable the bundle in `AppKernel.php`\n\n```php\nreturn [\n// ...\n    \\Studit\\H5PBundle\\StuditH5PBundle::class =\u003e ['all' =\u003e true]\n]\n```\n\n**Warning for Windows** : You need launch the cmd in administrator or using option ``-c``\n\nAdd the H5P assets to the bundle\n\n``` bash\nphp bin/console h5p-bundle:IncludeAssetsCommand\nphp bin/console assets:install --symlink\n```\n\nand reexecute ...\n\n```bash\n# For linux and mac only or windows admin\nphp bin/console h5p-bundle:IncludeAssetsCommand\n# For all without admin perms\nphp bin/console h5p-bundle:IncludeAssetsCommand -c\n```\n\nAdd required tables and relations to the database\n\n``` bash\nphp bin/console doctrine:schema:update --force \n```\n\nor\n\n````bash\nphp bin/console make:migrations\n````\n\nEnable the routing in `routes.yaml`\n\n```yaml\nstudit_h5p.demo:\n  resource: \"@StuditH5PBundle/Resources/config/routing_demo.yml\"\n  prefix: /\n\nstudit_h5p:\n  resource: \"@StuditH5PBundle/Resources/config/routes.yaml\"\n  prefix: /\n```\n\nstudit_h5p.demo is optional. It can be used as an example how to use H5P within Symfony and test if this bundle is\nworking properly.\n\nConfiguration\n-------------\n\nFor SF4:\nConfigure the bundle in `services.yaml`. (Watch for the underscore between h5 and p)\n\n```yaml\nparameters:\n  studit_h5_p:\n    use_permission: true # This is false by default to let the demo work out of the box.\n    storage_dir: / # Location to store all H5P libraries and files\n    web_dir: public # Location of the public web directory\n    export: 3 #for all\n    embed: 3 #for all\n```\n\nFor Symfony 5:\nConfigure the bundle in `packages \u003e studit_h5_p.yaml`.\n\n```yaml\nstudit_h5_p:\n  use_permission: true # This is false by default to let the demo work out of the box.\n  storage_dir: / # Location to store all H5P libraries and files\n  web_dir: public # Location of the public web directory\n  export: 3 #for all\n  embed: 3 #for all\n```\n\nFor all configurations see [Configuration.php](DependencyInjection/Configuration.php)\n\nif you are using permissions here is the current list of permissions in the bundle :\n\n| Permission                               | Description                                                                                  |\n|------------------------------------------|----------------------------------------------------------------------------------------------|\n| ROLE_H5P_DOWNLOAD_ALL                    | Download the H5P packages                                                                    |\n| ROLE_H5P_EMBED_ALL                       | Embed/Share to everyone the H5P                                                              |\n| ROLE_H5P_CREATE_RESTRICTED_CONTENT_TYPES | Restrict for user the type install                                                           |\n| ROLE_H5P_UPDATE_LIBRARIES                | Allow/Disallow the update of package H5P                                                     |\n| ROLE_H5P_INSTALL_RECOMMENDED_LIBRARIES   | Allow/Disallow to install libraries                                                          |\n| ROLE_H5P_COPY_ALL                        | Allow/Disallow to copy H5P (If you want to Download, you must install to have this role too) |\n\nUsage\n-------------\n\nFirst add a virtual host that points to you project. Then in your browser go to `http://\u003cyour virtualhost\u003e/h5p/list`\n\nTodo\n-------------\nWorking:\n\n- Store usage data and points (only if user is connected)\n- Download a H5P\n- Upload H5P\n- Update / Install H5P library\n- Store usage data and points\n\nNot everything is ported yet. The following things still need to be done:\n\n* Upload library. Currently only H5P default libraries can be selected from Hub. (need custom h5p for testing )\n\nChangelog:\n-------------\n\n- Using dev version with restrict tag for prevent Break Change\n- Implement missing road and resolve compatibility of H5P-editor\n- Fix bug and update the readme\n- Fix many bug ... and update to SF5 :)\n- Fix bug with missing link img\n- Fix Download package\n- Store usage data and points\n\nDeveloping:\n-------------\nRun the static analyzer like that:\n\n```sh\nphp -d memory_limit=-1 vendor/bin/phpstan.phar analyze .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorisdugue%2Fh5p-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorisdugue%2Fh5p-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorisdugue%2Fh5p-bundle/lists"}