PHPackages                             klaaspoortinga/tin-can-report-library - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. klaaspoortinga/tin-can-report-library

AbandonedArchivedLibrary

klaaspoortinga/tin-can-report-library
=====================================

Tin Can Report Library

014PHP

Since Nov 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Klaasie/Report-Library-TinCan)[ Packagist](https://packagist.org/packages/klaaspoortinga/tin-can-report-library)[ RSS](/packages/klaaspoortinga-tin-can-report-library/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Tin Can PHP Report Library
==========================

[](#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

[](#getting-started)

Tin Can Report Library is available via [Composer](http://getcomposer.org).

```
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
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a12e72a6a6a2534d5a8dfc29083c40fd059e807b17c18af90eb5af241fdc847?d=identicon)[Klaasie](/maintainers/Klaasie)

---

Top Contributors

[![Klaasie](https://avatars.githubusercontent.com/u/3026259?v=4)](https://github.com/Klaasie "Klaasie (88 commits)")

### Embed Badge

![Health badge](/badges/klaaspoortinga-tin-can-report-library/health.svg)

```
[![Health](https://phpackages.com/badges/klaaspoortinga-tin-can-report-library/health.svg)](https://phpackages.com/packages/klaaspoortinga-tin-can-report-library)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
