Download the PHP package al-saloul/laravel-nelc-xapi-integration without Composer

On this page you can find all versions of the php package al-saloul/laravel-nelc-xapi-integration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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 lrs-nelc-xapi and the file lrs-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:

Add your LRS_ENDPOINT and LRS_USERNAME and LRS_PASSWORD to projects .env file

If needed you can open the lrs-nelc-xapi.php file inside the config folder. Adjust the basic settings according to your requirements. Make sure to set up any authentication (key, secret) details through .env file to avoid these sensitive being commited to git repo and being exposed.

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('lrs-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 Build Version
Package Version
Requires al-saloul/agent Version ^3.0
guzzlehttp/guzzle Version ^7.2 || ^7.8
php Version ^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package al-saloul/laravel-nelc-xapi-integration contains the following files

Loading the files please wait ....