escolalms/courses-import-export

Escola Headless LMS Courses Import Export

0.1.22 2024-05-23 06:27 UTC

README

swagger codecov phpunit downloads downloads downloads Maintainability Test Coverage

What does it do

This package is responsible for dealing courses in .ulam format

1. Exporting

Export do create zip package in ulam format with content.json and all essential assets. Export Resource is used for this.

2. Importing

Importing the courses in ulam format.

3. Cloning

Installing

  • composer require escolalms/course-import-export
  • php artisan db:seed --class="EscolaLms\CoursesImportExport\Database\Seeders\CoursesExportImportPermissionSeeder"

Endpoints

All the endpoints are defined in swagger swagger

Tests

Run ./vendor/bin/phpunit to run tests. See tests folder as it's quite good staring point as documentation appendix.

Test details codecov phpunit

Events

  1. CloneCourseStarted - event dispatched after course cloning is started.
  2. CloneCourseFailed - event dispatched after unsuccessful course cloning.
  3. CloneCourseFinished - event dispatched after successfully course cloning.

Permissions

Permissions are defined in seeder