dev-master
9999999-devTin Can Report Library
MIT
The Requires
The Development Requires
by Klaas Poortinga
Wallogit.com
2017 © Pedro Peláez
Tin Can 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., (*1)
Tin Can Report Library is available via Composer., (*2)
php composer.phar require klaaspoortinga/tin-can-report-library:dev-master
With the package installed require the Composer autoloader:, (*3)
require 'vendor/autoload.php';
Connect to your LRS using:, (*4)
$lrs = new Report();
$lrs->connectLrs('lrs_endpoint','lrs_username','lrs_password');
Retrieving statistics is as easy as:, (*5)
$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!, (*6)
$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
Tin Can Report Library
MIT