xAPI Integration with NELC (National Center for e-Learning) - Laravel Package
nelc/laravel-nelc-xapi-integration is a Laravel package for xapi integration with nelc (national center for e-learning) - laravel package.
It currently has 3 GitHub stars and 2.717 downloads on Packagist.
Install it with composer require nelc/laravel-nelc-xapi-integration.
Discover more Laravel packages by nelc
or browse all Laravel packages to compare alternatives.
Last updated
Laravel package for integrating with the Saudi National Center for e-Learning (NELC) xAPI system.
composer require bzzix/laravel-lrs-packagephp artisan vendor:publish --provider="Bzzix\LaravelLrsPackage\NelcXapiServiceProvider"LRS_ENDPOINT=https://your-lrs-endpoint.com/xapi/statements
LRS_USERNAME=your_key
LRS_PASSWORD=your_secret
LRS_PLATFORM_AR="Platform Name AR"
LRS_PLATFORM_EN="Platform Name EN"
LRS_PLATFORM="SHORT_ID"
All interactions are called using a single $data array.
Sent when a student enrolls in a course.
$xapi->Registered([
'name' => '1234567890', // Student National ID
'email' => '[email protected]',
'courseId' => 'Course URL',
'courseName' => 'Course Title',
'courseDesc' => 'Course Description',
'instructor' => 'Instructor Name',
'inst_email' => '[email protected]',
// Optional NELC Extensions
'duration' => 'PT10H', // ISO 8601 Duration
'learnerFullName' => 'Full Name',
'learnerMobileNo' => '+966...',
'learnerNationality' => 'Saudi',
'dateOfBirth' => 'YYYY-MM-DD',
'lmsUrl' => 'LMS Base URL'
]);
Sent when a student starts an activity.
$xapi->Initialized([
'name' => '1234567890', // National ID
'email' => '...',
'courseId' => '...',
'courseName' => '...',
'courseDesc' => '...',
'instructor' => '...',
'inst_email' => '...'
]);
Sent when a student interacts with video content.
$xapi->Watched([
'name' => '1234567890',
'lessonUrl' => 'Video URL',
'lessonName' => 'Video Title',
'completion' => true,
'duration' => 'PT5M',
'courseId' => '...',
// ... basic info
]);
$xapi->Attempted([
'name' => '1234567890',
'quizUrl' => '...',
'attempNumber' => '1',
'scaled' => 0.9, // 0 to 1
'raw' => 90,
'min' => 0,
'max' => 100,
'completion' => true,
'success' => true,
// ... basic info
]);
The library supports: Registered, Initialized, Watched, CompletedLesson, CompletedUnit, CompletedCourse, Progressed, Attempted, Earned, Rated.
composer require bzzix/laravel-lrs-packagephp artisan vendor:publish --provider="Bzzix\LaravelLrsPackage\NelcXapiServiceProvider"LRS_ENDPOINT=https://your-lrs-endpoint.com/xapi/statements
LRS_USERNAME=your_key
LRS_PASSWORD=your_secret
$xapi->Registered([
'name' => '1234567890', // رقم الهوية الوطنية للطالب
'email' => '[email protected]',
'courseId' => 'رابط الدورة',
'courseName' => 'اسم الدورة',
'courseDesc' => 'وصف الدورة',
'instructor' => 'اسم المحاضر',
'inst_email' => 'بريد المحاضر',
'duration' => 'PT10H',
'learnerFullName' => 'الاسم الرباعي',
'learnerMobileNo' => '+966...',
'learnerNationality' => 'Saudi',
'dateOfBirth' => 'YYYY-MM-DD'
]);
$xapi->Attempted([
'name' => '1234567890',
'quizUrl' => 'رابط الاختبار',
'attempNumber' => '1',
'scaled' => 0.9,
'raw' => 90,
'min' => 0,
'max' => 100,
'completion' => true,
'success' => true,
'courseId' => '...',
'courseName' => '...',
// ... البيانات الأساسية
]);
Developed by Bzzix Team. "# laravel-lrs-package"