2017 © Pedro Peláez
 

library tin-can-report-library

Tin Can Report Library

image

klaaspoortinga/tin-can-report-library

Tin Can Report Library

  • Friday, November 7, 2014
  • by Klaasie
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*1)

Getting started

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

The Versions

07/11 2014

dev-master

9999999-dev

Tin Can Report Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Klaas Poortinga