PHPackages                             thegarious/tincan - 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. [API Development](/categories/api)
4. /
5. thegarious/tincan

ActiveLibrary[API Development](/categories/api)

thegarious/tincan
=================

Experience API (Tin Can API) Library Fork with PHP 8 support

v1.0.1(3y ago)08Apache-2.0PHPPHP ^8.1

Since Aug 16Pushed 3y agoCompare

[ Source](https://github.com/TheGarious/TinCanPHP)[ Packagist](https://packagist.org/packages/thegarious/tincan)[ Docs](http://rusticisoftware.github.io/TinCanPHP/)[ RSS](/packages/thegarious-tincan/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

A PHP library for implementing the Experience API (Tin Can API).

[![Build Status](https://camo.githubusercontent.com/7cd360f1e5d88275bef5219b6747dc7ec86810b7cb35d901c66adee7ef71747f/68747470733a2f2f7472617669732d63692e6f72672f52757374696369536f6674776172652f54696e43616e5048502e706e67)](https://travis-ci.org/RusticiSoftware/TinCanPHP)[![Latest Stable Version](https://camo.githubusercontent.com/b3ef15d7aa38fad32365f2884969d931ec30c50f11b35746129864991c108e0f/68747470733a2f2f706f7365722e707567782e6f72672f72757374696369736f6674776172652f74696e63616e2f762f737461626c65)](https://packagist.org/packages/rusticisoftware/tincan)[![License](https://camo.githubusercontent.com/009f6f4af26035139fc0f0c4db511c9cbfbad1accb27011b0a6702bb8ac95c13/68747470733a2f2f706f7365722e707567782e6f72672f72757374696369736f6674776172652f74696e63616e2f6c6963656e7365)](https://packagist.org/packages/rusticisoftware/tincan)[![Total Downloads](https://camo.githubusercontent.com/b54ad8d406381791c7dbaa18c01229b1016029c5bfdb3f550ecc77fb6e20732c/68747470733a2f2f706f7365722e707567782e6f72672f72757374696369736f6674776172652f74696e63616e2f646f776e6c6f616473)](https://packagist.org/packages/rusticisoftware/tincan)

For hosted API documentation, basic usage instructions, supported version listing, etc. visit the main project website at:

For more information about the Experience API visit:

Requires PHP 5.5 or later. (If you must run something older you should look at the 0.x release series or the PHP\_5\_2 branch.)

### Installation

[](#installation)

TinCanPHP is available via [Composer](http://getcomposer.org).

```
php composer.phar require rusticisoftware/tincan:@stable

```

When not using Composer, require the autoloader:

```
require 'path/to/TinCan/autoload.php';
```

### Testing

[](#testing)

Tests are implemented using the latest stable version of PHPUnit. It will be installed when using Composer. Configure the LRS endpoint and credentials by copying the `tests/config/config.dist.php` to `tests/config/config.php` then setting the values for your LRS.

Once configured run:

```
vendor/bin/phpunit

```

### API Doc Generation

[](#api-doc-generation)

Documentation can be output using [phpDocumentor2](http://phpdoc.org). It will be installed when using Composer. To generate documentation:

```
vendor/bin/phpdoc

```

From the root of the repository after running `php composer.phar update`. Documentation will be output to `doc/api`.

If you do not have the default timezone set in your `php.ini` file you can create one in the base of the repo and use the `PHPRC` environment variable to point to it. Use something like:

```
export PHPRC="/path/to/repos/TinCanPHP/php.ini"

```

And set the timezone in that file using:

```
[PHP]

date.timezone = "US/Central"

```

### Certificate Generation

[](#certificate-generation)

These instructions are for creating the requisite public/private key pair and certificate on a Mac with OpenSSL installed. See  and .

Generate a private key (which contains a public key) without a password (not recommended):

```
openssl genrsa -out privkey.pem 2048

```

To generate a private key with a password:

```
openssl genrsa -des3 -out privkey.pem 2048

```

Create a certificate signing request:

```
 openssl req -new -key privkey.pem -out cert.csr

```

To create a self signed certificate (as opposed to one signed by a CA), primarily for testing purposes:

```
openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.2% 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1361d ago

PHP version history (2 changes)v1.0.0PHP ^7.3 || ^8.0 || ^8.1

v1.0.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/169d874789daccd7d81820118d4ba1bfb4df2885695152f87f03da211276ed90?d=identicon)[ghoubre](/maintainers/ghoubre)

---

Top Contributors

[![brianjmiller](https://avatars.githubusercontent.com/u/95960?v=4)](https://github.com/brianjmiller "brianjmiller (99 commits)")[![texdc](https://avatars.githubusercontent.com/u/1590605?v=4)](https://github.com/texdc "texdc (26 commits)")[![garemoko](https://avatars.githubusercontent.com/u/1363163?v=4)](https://github.com/garemoko "garemoko (20 commits)")[![bscSCORM](https://avatars.githubusercontent.com/u/732452?v=4)](https://github.com/bscSCORM "bscSCORM (6 commits)")[![reedmclean](https://avatars.githubusercontent.com/u/28209769?v=4)](https://github.com/reedmclean "reedmclean (6 commits)")[![duartefq](https://avatars.githubusercontent.com/u/2079790?v=4)](https://github.com/duartefq "duartefq (4 commits)")[![ht2](https://avatars.githubusercontent.com/u/1352590?v=4)](https://github.com/ht2 "ht2 (4 commits)")[![mattsimpson](https://avatars.githubusercontent.com/u/44116?v=4)](https://github.com/mattsimpson "mattsimpson (2 commits)")[![Klaasie](https://avatars.githubusercontent.com/u/3026259?v=4)](https://github.com/Klaasie "Klaasie (2 commits)")[![ericgreen-dev](https://avatars.githubusercontent.com/u/20322777?v=4)](https://github.com/ericgreen-dev "ericgreen-dev (1 commits)")

---

Tags

scorme-learningxAPIExperience APItincantin can

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thegarious-tincan/health.svg)

```
[![Health](https://phpackages.com/badges/thegarious-tincan/health.svg)](https://phpackages.com/packages/thegarious-tincan)
```

###  Alternatives

[rusticisoftware/tincan

Experience API (Tin Can API) Library

87828.6k2](/packages/rusticisoftware-tincan)[php-xapi/client

client library for the Experience API (xAPI)

2344.4k](/packages/php-xapi-client)[rustici-software/scormcloud-api-v2-client-php

20253.2k](/packages/rustici-software-scormcloud-api-v2-client-php)

PHPackages © 2026

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