PHPackages                             classera/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. classera/tincan

ActiveLibrary[API Development](/categories/api)

classera/tincan
===============

Experience API (Tin Can API) Library

011PHP

Since Apr 13Pushed 3y agoCompare

[ Source](https://github.com/1laithALi/TinCanPHP-Classera)[ Packagist](https://packagist.org/packages/classera/tincan)[ RSS](/packages/classera-tincan/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60.6% 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/8e982612bec0755a1cca2ad31a157210a48610b9115413f8e23bdf6b2dff87b8?d=identicon)[1laithALi](/maintainers/1laithALi)

---

Top Contributors

[![brianjmiller](https://avatars.githubusercontent.com/u/95960?v=4)](https://github.com/brianjmiller "brianjmiller (100 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)")[![reedmclean](https://avatars.githubusercontent.com/u/28209769?v=4)](https://github.com/reedmclean "reedmclean (6 commits)")[![bscSCORM](https://avatars.githubusercontent.com/u/732452?v=4)](https://github.com/bscSCORM "bscSCORM (6 commits)")[![ht2](https://avatars.githubusercontent.com/u/1352590?v=4)](https://github.com/ht2 "ht2 (4 commits)")[![Klaasie](https://avatars.githubusercontent.com/u/3026259?v=4)](https://github.com/Klaasie "Klaasie (2 commits)")[![Natshah](https://avatars.githubusercontent.com/u/1641992?v=4)](https://github.com/Natshah "Natshah (1 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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