Download the PHP package lamoud/laravel-nelc-xapi-integration without Composer
On this page you can find all versions of the php package lamoud/laravel-nelc-xapi-integration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lamoud/laravel-nelc-xapi-integration
More information about lamoud/laravel-nelc-xapi-integration
Files in lamoud/laravel-nelc-xapi-integration
Package laravel-nelc-xapi-integration
Short Description xAPI Integration with NELC (National Center for e-Learning)
License MIT
Homepage https://github.com/lamoud/laravel-nelc-xapi-integration
Informations about the package laravel-nelc-xapi-integration
Laravel Nelc Xapi Integration
Laravel package for integrating with Saudi NELC xAPI.
Installation
Step 1: Navigate to Your Project Directory
Before you begin, navigate to the directory where your Laravel project is located. Use the following command to change into your project directory:
Step 2: Installation
You can install this library using Composer. Run the following command:
Step 3: Register the ServiceProvider
Register the NelcXapiServiceProvider
in your Laravel project. Open the config/app.php
file and add the following line to the providers
array:
Step 4: Dump Autoload Files
After registering the ServiceProvider, run the following command to re-generate Composer's autoloader files:
Step 5: Publish Configuration Files
To publish the configuration files provided by this package, run the following Artisan command:
This will deploy asset
files inside the public folder with the name lamoud-nelc-xapi
and the file lamoud-nelc-xapi.php
inside the config
folder.
Step 6: Configure Basic Settings
To start using this package, follow these steps to configure the basic settings and connect with NELC XAPI:
Open the lamoud-nelc-xapi.php
file inside the config
folder. Adjust the basic settings according to your requirements. Make sure to set up any necessary enpoint
, authentication (key, secret)
details, and other configuration options.
Now, you can go to the demo page and start testing statement submissions using the following link:
https://your-site.com/nelcxapi/test
or through the route('lamoud-nelc-xapi.base_route')
.
Usage
Once the package is installed and the ServiceProvider is registered, you can use it in your Laravel project. Here's a simple examples:
Registered Statement
Indicates the actor is officially enrolled or inducted in an activity.
Initialized Statement
Indicates the activity provider has determined that the actor successfully started an activity.
Watched Statement
Indicates that the actor has watched the object. This verb is typically applicable only when the object represents dynamic, visible content such as a movie, a television show or a public performance. This verb is a more specific form of the verbs experience, play and consume.
Completed Statement
Indicates the actor finished or concluded the activity normally.
Completed (Lesson or class)
All versions of laravel-nelc-xapi-integration with dependencies
php Version ^7.4 || ^8.0
jenssegers/agent Version ^2.6