Download the PHP package trax/lrs without Composer

On this page you can find all versions of the php package trax/lrs. 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 lrs

TRAX LRS

About this software

TRAX LRS is a Learning Record Store which conforms with the lastest xAPI specification and has been certified by ADL. It has a minimalist set of features, but can be extended by anyone who has PHP/Laravel programming skills.

Use cases

Web App vs Pure API

Database scenarios

Server requirements

Installing the application

Cloning the application

To simplest way to clone the application is to use the Composer create-project command in your terminal. The following example installs the application in a directory named traxlrs:

composer create-project --prefer-dist --stability rc trax/lrs traxlrs

Directory permissions

After cloning the application, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or TRAX LRS will not run.

Public directory

After cloning the application, you should configure your web server's document / web root to be the public directory. Other directories should not be accessible for security reasons.

Creating the database

Create an empty database with a utf8mb4_unicode_ci encoding.

Configuration

At the root of your application, you should find a file named .env. If this file does not exist, copy and rename the .env.example file. Then, edit the .env file in order to configure your application.

General settings

Database

Relational database (when applicable)

MongoDB database (when applicable)

Data store drivers

Sessions

Installing the database

Your application must be well configured before trying to install the database. When you are ready, enter the following command from the root of your application:

php artisan migrate

Creating the admin user

After installing the database, you may want to create an admin user in order to log into the application. Enter the following command from the root of your application:

php artisan user:create-admin

Copy the generated password and email. Then, open your browser and log into the application. Don't forget to change your password in My Profile.

Creating a client account

Once your database is installed, you may want to create some Basic HTTP client accounts in order to let your third party applications connect to the LRS. You can create client accounts directly from the LRS user interface (Basic HTTP Clients page), or with the php artisan client:create command (see details below).

Then, you can configure your client with its credentials and the following endpoint, considering that your LRS URL is http://trax.test:

http://trax.test/trax/ws/xapi

If you want to check that the endpoint URL is correct that your LRS is running, just enter http://trax.test/trax/ws/xapi/about in your browser. You should see some JSON information.

Console commands

TRAX LRS provides a few convenient commands to manage your application directly from your console:

Plugins

Performance optimization

To optimize the performances of the application, you may want to activate some caching functions. From the root folder, enter the following commands:

php artisan route:cache
php artisan config:cache

License and copyright

TRAX LRS is distributed under the EUPL 1.2 license.

Copyright 2019 Sébastien Fraysse, http://fraysse.eu, [email protected].


All versions of lrs with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
fideloper/proxy Version ^4.0
jenssegers/mongodb Version ^3.4
laravel/framework Version 5.7.*
laravel/tinker Version ^1.0
trax/framework Version ^1.0@RC
trax/xapi Version ^1.0@RC
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 trax/lrs contains the following files

Loading the files please wait ....