Download the PHP package escolalms/courses without Composer
On this page you can find all versions of the php package escolalms/courses. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package courses
Courses
Courses and content package
What does it do
This package is used for creating Course for EscolaLms.
Installing
composer require escolalms/courses
php artisan migrate
php artisan db:seed --class="EscolaLms\Courses\Database\Seeders\CoursesPermissionSeeder"
Schedule
- Schedules are available in ScheduleServiceProvider
$schedule->job(CheckForDeadlines::class)->hourly()
- executed every hours$schedule->job(ActivateCourseJob::class)->daily()
- executed every days
Endpoints
All the endpoints are defined in
Tests
Run ./vendor/bin/phpunit --filter 'EscolaLms\\Courses\\Tests'
to run tests. See tests folder as it's quite good staring point as documentation appendix.
Events
EscolaLms\Courses\Events\CourseAccessFinished
=> Event is dispatched when users lost access to course.EscolaLms\Courses\Events\CourseAccessStarted
=> Event is dispatched when users received access to course.EscolaLms\Courses\Events\CourseAssigned
=> Event is dispatched when admin assigned access user.EscolaLms\Courses\Events\CourseDeadlineSoon
=> Event is dispatched when course deadline is coming out.EscolaLms\Courses\Events\CoursedPublished
=> Event is dispatched when course is published.EscolaLms\Courses\Events\CourseFinished
=> Event is dispatched when course is ended.EscolaLms\Courses\Events\CourseStarted
=> Event is dispatched when course is started.EscolaLms\Courses\Events\CourseStatusChanged
=> Event is dispatched when course has a status change.EscolaLms\Courses\Events\CourseTutorAssigned
=> Event is dispatched when tutor is assigned to course.EscolaLms\Courses\Events\CourseTutorUnassigned
=> Event is dispatched when tutor is unassigned to course.EscolaLms\Courses\Events\CourseUnassigned
=> Event is dispatched when user is unassigned to course.EscolaLms\Courses\Events\TopicFinished
=> Event is dispatched when course topic is finished.
Permissions
Permissions are defined in seeder
Model relation
The model user must be extended with the class HasCourses :
Database relation
There is simple relation. see docs for diagram
Course
general category of the courseLesson
grouped by CourseTopic
grouped by Lesson
TopicContent
is an abstract model, this package contains some sample implementatio eg, RichText
, Audio
, Video
, H5P
and Image
You create any of the Content model by post to the same Topic endponit (create and update), see docs examples
Note that /api/topics
is using form-data
- this is due to PHP nature of posting files
List of possible TopicContent
s is availabe in the endpoint /api/topics/types
Curriculum/Sylabus/Program
App user access the course by fetching GET /api/courses/{id}/program
endpoint. This is after user purchase or has other access to the course. this endpoints renders tree of Course, Lessons, Topic with Contents essential to render whole course.
Adding new TopicContent
type
In the ServiceProvider register your class like
see Models/TopicContent
Content
Package comes with seeder that create course with lessons and topics
All versions of courses with dependencies
davidbadura/faker-markdown-generator Version ^1.1
devianl2/laravel-scorm Version >=2.0
escolalms/auth Version ^0
escolalms/categories Version ^0
escolalms/core Version ^1
escolalms/files Version ^0
escolalms/scorm Version ^0
escolalms/settings Version ^0
escolalms/tags Version ^0
escolalms/model-fields Version ^0
laravel/framework Version >=8.0
spatie/laravel-responsecache Version ^7.4