escolalms / scorm
Escola LMS SCORM management
Installs: 25 092
Dependents: 2
Suggesters: 0
Security: 0
Stars: 9
Watchers: 5
Forks: 3
Open Issues: 0
Type:package
Requires
- php: >=7.4
- devianl2/laravel-scorm: ^4
- escolalms/auth: ^0
- escolalms/core: ^1
- laravel/framework: >=8.0
Requires (Dev)
- orchestra/testbench: >=6
- phpunit/phpunit: ^9.0
- dev-main
- 0.2.23
- 0.2.22
- 0.2.21
- 0.2.20-patch-1
- 0.2.20
- 0.2.19
- 0.2.18
- 0.2.17
- 0.2.16
- 0.2.15
- 0.2.14
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-release/0.2.20
- dev-bugfix/SUD-489
- dev-qunabu-patch-1
- dev-feature/upload-storage-fix
- dev-feature/94
- dev-feature/scorm-sco-id
- dev-feature/lowercase_file
This package is auto-updated.
Last update: 2024-11-14 12:44:52 UTC
README
What does it do
This package is used to store and manage SCORM packages.
Installing
composer require escolalms/scorm
php artisan migrate
php artisan db:seed --class="EscolaLms\Scorm\Database\Seeders\DatabseSeeder"
php artisan db:seed --class="EscolaLms\Scorm\Database\Seeders\PermissionTableSeeder"
Database
scorm
- Scorm package main data.scorm_sco
- Educational content data associated with the Scorm package.scorm_sco_tracking
- Stores the user's progress.
Scorm 1 -> n ScormScos
Scorm 1 -> n ScormScoTracking
Tutorial
- Get the Scorm package from EscolaLms\Scorm or Sample SCORM packages.
- Upload Scorm package in Zip format
/api/admin/scorm/upload
. - Start the player by specifying uuid Scorm SCO
/api/scorm/play/{uuid}
. - The package supports tracking user progress, to achieve this, you need to send an authorization token in the header.
Endpoints
/api/admin/scorm/upload
- Upload ZIP Scorm Package into app local storage./api/scorm/play/{uuid}
- SCORM SCO player.
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.
How to use this on frontend.
Endpoint /api/scorm/play/{uuid}
returns the html file with the <iframe>
.
<html lang="en"> ... <iframe src="api/storage/{scorm-version}/{uuid}/index.html"></iframe> ... </html>
Admin panel
Permissions
Permissions are defined in seeder.
Todo.
The package does not support all available scorm formats #1 #2