escolalms / courses-import-export
Escola Headless LMS Courses Import Export
Installs: 8 750
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.4
- escolalms/core: ^1
- laravel/framework: >=8.0
- zanysoft/laravel-zip: ^2
Requires (Dev)
- escolalms/auth: ^0
- escolalms/courses: ^0.4
- escolalms/headless-h5p: ^0.4
- escolalms/settings: ^0
- escolalms/topic-types: ^0
- orchestra/testbench: >=7.0
- phpunit/phpunit: ^9.0
README
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
Tests
Run ./vendor/bin/phpunit
to run tests. See tests folder as it's quite good staring point as documentation appendix.
Events
CloneCourseStarted
- event dispatched after course cloning is started.CloneCourseFailed
- event dispatched after unsuccessful course cloning.CloneCourseFinished
- event dispatched after successfully course cloning.
Permissions
Permissions are defined in seeder