Skip to content
On this page

Courses-Import-Export

swaggercodecovphpunitdownloadsdownloadsdownloadsMaintainabilityTest 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 codecovphpunit

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