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

Related tags

Laravel nelc-laravel
Overview

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

You might also like...
Razorpay payment gateway integration in laravel with submit form and storing details in payment table.

Integrating razorpay payment gateway in laravel with submit form and storing payment details in payment table. How to settup the project in your local

Laravel Echo library for beautiful Pusher and Ably integration.

Introduction In many modern web applications, WebSockets are used to implement realtime, live-updating user interfaces. When some data is updated on t

Laravel basic repository integration

WekodeRepository This is a package to easely integrate a repository pattern with the needed service provider and all the necessary basic functions Ins

Official Mollie integration for Laravel Cashier
Official Mollie integration for Laravel Cashier

Subscription billing with Laravel Cashier for Mollie Laravel Cashier provides an expressive, fluent interface to subscriptions using Mollie's billing

A Laravel Livewire integration for Statamics antlers engine

Statamic Livewire A third-party Laravel Livewire integration for Statamic. It's as easy as it get's to get stared with Livewire if using Statamic 3. I

An advanced Laravel integration for Bref, including Octane support.

Bref Laravel Bridge An advanced Laravel integration for Bref, including Octane support. This project is largely based on code from PHP Runtimes, Larav

This package is the official Laravel integration for Pirsch Analytics

Laravel Pirsch This package is the official Laravel integration for Pirsch Analytics. Installation Install this package. composer require pirsch-analy

🍪 Powerful wrapper for improved cookie integration on Laravel

🍪 Powerful wrapper for improved cookie integration on Laravel

Laravel Breadcrumbs - An easy way to add breadcrumbs to your @Laravel app.

Introduction Breadcrumbs display a list of links indicating the position of the current page in the whole site hierarchy. For example, breadcrumbs lik

Laravel-OvalFi helps you Set up, test, and manage your OvalFi integration directly in your Laravel App.

OvalFi Laravel Package Laravel-OvalFi helps you Set up, test, and manage your OvalFi integration directly in your Laravel App. Installation You can in

Paul Adams 2 Sep 8, 2022
Chrome extension to generate Laravel integration tests while using your app.

Laravel TestTools Check out the introduction post about the chrome extension. Installation git clone [email protected]:mpociot/laravel-testtools.git # i

Marcel Pociot 473 Nov 1, 2022
Learning Websocket by creating Custom Websocket-server package provided by Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling.

Chisty Md.Muzammel Hossain 3 Oct 25, 2022
CheckPoint 4 - Learning Management System

Welcome to the Learn Party Learn Party is a learning platform that offers user generated content for studying the latest technologies online (Youtube

Kariuki 10 Oct 11, 2021
A simple blog app where a user can signup , login, like a post , delete a post , edit a post. The app is built using laravel , tailwind css and postgres

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Nahom_zd 1 Mar 6, 2022
A web app for detecting backend technologies used in a web app, Based on wappalyzer node module

About Techdetector This a web fingerprinting application, it detects back end technologies of a given domain by using the node module wappalyzer. And

Shobi 16 Oct 24, 2022
CV-Resumes-App is helped us to build resume .. you can help me to improve this app...

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Eng Hasan Hajjar 2 Sep 30, 2022
Podcastwala - Your very own Podcast web app built with Laravel. Manage and listen to your favorite podcasts

Podcastwala Your very own Podcast web app built with Laravel 5. This web app enables you to manage RSS feeds for your favorite podcasts and listen to

null 142 Sep 14, 2022
This package provides an integration with FFmpeg for Laravel. Laravel's Filesystem handles the storage of the files.

Laravel FFMpeg This package provides an integration with FFmpeg for Laravel 6.0 and higher. Laravel's Filesystem handles the storage of the files. Lau

Protone Media 1.2k Nov 20, 2022
Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

null 8 Nov 29, 2022