Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Klaasie/Report-Library-TinCan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tin Can PHP Report Library

This is an very early draft of a Tin Can Report Library. Goal of this library is to make it easy to query and analyse Tin Can statements.

Getting started

Tin Can Report Library is available via Composer.

php composer.phar require klaaspoortinga/tin-can-report-library:dev-master

With the package installed require the Composer autoloader:

require 'vendor/autoload.php';

Connect to your LRS using:

$lrs = new Report();
$lrs->connectLrs('lrs_endpoint','lrs_username','lrs_password');

Retrieving statistics is as easy as:

$response = $lrs->Statistics->pastMonth(); //Get monthly statistics
$response = $lrs->Statistics->pastMonth()->filterActors(); //Retrieves amount of monthly actors

Or use the Analyse class to get suggestions or compare actors!

$response = $lrs->Analyse->getSuggestions(5); //Retrieves the 5 most popular activities
$response = $lrs->Analyse->compareActors(array(actor1, actor2, ..)) //Retrieves the activities these actors have in common

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published