msaaq/nelc-laravel

xAPI Integration with Saudi NELC (National Center for e-Learning) for your Laravel app
15,699 6
Install
composer require msaaq/nelc-laravel
Latest Version:v1.4.2
PHP:^8.2|^8.3|^8.4
License:MIT
Last Updated:Apr 13, 2026
Links: GitHub  ·  Packagist
Maintainer: Hussam3bd

NELC Laravel Integration

xAPI Integration with Saudi NELC (National Center for e-Learning) for your Laravel app

Installation

You can install the package via composer:

composer require msaaq/nelc-laravel

After install the package you need to set API credentials in config/services.php file:

[
    // ...
    
    'nelc' => [
        'key' => env('NELC_KEY'),
        'secret' => env('NELC_SECRET'),
        'platform' => [
            'name' => env('NELC_PLATFORM_NAME'),
            'identifier' => env('NELC_PLATFORM_IDENTIFIER'),
        ],
        'sandbox' => env('NELC_SANDBOX', false),
    ],
]

Usage

Now you can send xAPI statements to NELC using Msaaq\NelcLaravel\Nelc facade:

use Msaaq\NelcLaravel\Nelc;

app(Nelc::class)->sendStatement($statement);

Or

use Nelc;

Nelc::sendStatement($statement);

Or from your controller like this:

use Msaaq\NelcLaravel\Nelc;

class MyController extends Controller
{
    public function index(Request $request, Nelc $nelc)
    {
        $nelc->sendStatement($statement);
    }
}

Statements

For more information about the statements, please visit nelc-xapi-php-sdk

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v1.4.2 ^8.2|^8.3|^8.4 ^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v1.4.1 ^8.2|^8.3|^8.4 ^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v1.4 ^8.2|^8.3|^8.4 ^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v1.3 ^8.1|^8.2|^8.3 ^9.0|^10.0|^11.0 MIT
v1.2.1 ^8.1 ^9.0|^10.0 MIT