escolalms/webinar
Composer 安装命令:
composer require escolalms/webinar
包简介
Escola Headless LMS Webinar
README 文档
README
Package enabling live video stream
What does it do
This package is used for creating Webinar for EscolaLms.
Installing
composer require escolalms/webinarphp artisan migratephp artisan db:seed --class="EscolaLms\Webinar\Database\Seeders\WebinarsPermissionSeeder"- Integration with Youtube
Schedule
- In App\Console\Kernel to method schedule add
$schedule->job(new ReminderAboutWebinarJob(WebinarTermReminderStatusEnum::REMINDED_HOUR_BEFORE))->everyFiveMinutes()- reminder about to webinar before one hour, executed every 5 minutes$schedule->job(new ReminderAboutWebinarJob(WebinarTermReminderStatusEnum::REMINDED_DAY_BEFORE))->everySixHours();- reminder about to webinar before one day, executed every 6 hours
Endpoints
All the endpoints are defined in
Tests
Run ./vendor/bin/phpunit --filter=Webinar to run tests. See tests folder as it's quite good staring point as documentation appendix.
Events
EscolaLms\Webinar\Events\ReminderAboutTerm=> Event is dispatched after execute cron jobEscolaLms\Webinar\Jobs\ReminderAboutWebinarJob, Event is dispatched when deadline for purchased webinars before 1 hours and 1 dayEscolaLms\Webinar\Events\WebinarTrainerAssigned=> Event is dispatched after assigned trainer to webinarEscolaLms\Webinar\Events\WebinarTrainerUnassigned=> Event is dispatched after unassigned trainer from webinar
Listeners
EscolaLms\Webinar\Listeners\ReminderAboutTermListener=> Listener execute a method that singed the status in the webinar reminder
How does this work on frontend.
sequenceDiagram
box Embeed in Web App
participant Jisti
actor Tutor
participant Youtube
participant Web App
actor Student
end
box Administration
participant Admin Panel
actor Admin
end
Admin->>Admin Panel: Creates a webinar instance
Student->>Web App: Get access to webinar (eg. buys)
Tutor->>Web App: (on the day of the event) Broadcast
Web App->>Jisti: Broadcast with Jitsu GUI
Jisti->>Youtube: Broadcast to public
Youtube->>Web App: forward for public
Student->>Web App: Watches webinar with YT GUI
Loading
Permissions
Permissions are defined in seeder
Database relation
TrainersWebinar is related belongs to many with UserTagsWebinar model morph many to model tagsUsersWebinar is related belongs to many with User which bought webinar
Webinar 1 -> n User
Webinar 1 -> n Tags
Webinar 1 -> n User
escolalms/webinar 适用场景与选型建议
escolalms/webinar 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.64k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2022 年 02 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 escolalms/webinar 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 escolalms/webinar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 13
- 依赖项目数: 4
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-15