thedruka/h5p-bundle
Composer 安装命令:
composer require thedruka/h5p-bundle
包简介
README 文档
README
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 3.4
Installation
Install with composer
composer require emmedy/h5p-bundle
Enable the bundle in AppKernel.php
$bundles = array( // ... new Emmedy\H5PBundle\EmmedyH5PBundle(), )
Add the H5P assets to the bundle
php app/console h5p-bundle:include-assets php app/console assets:install --symlink
Add required tables and relations to the database
php app/console doctrine:schema:update --force
Enable the routing in routing.yml
emmedy_h5p.demo: resource: "@EmmedyH5PBundle/Resources/config/routing_demo.yml" prefix: / emmedy_h5p: 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.
Configuration
Configure the bundle in config.yml. (Watch for the underscore between h5 and p)
emmedy_h5_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
Usage
First add a virtual host that points to you project. Then in your browser go to http://<your virtualhost>/h5p/list
Todo
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.
- Download package
- Embed package
- Store usage data and points
thedruka/h5p-bundle 适用场景与选型建议
thedruka/h5p-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 399 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 thedruka/h5p-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 thedruka/h5p-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 399
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-21