PHPackages                             xelax90/learning-context-client - 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. xelax90/learning-context-client

ActiveLibrary[API Development](/categories/api)

xelax90/learning-context-client
===============================

Simple Learning Context API Client

v0.1(10y ago)0121BSD-2-ClausePHP

Since Jan 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/xelax90/learning-context-client)[ Packagist](https://packagist.org/packages/xelax90/learning-context-client)[ RSS](/packages/xelax90-learning-context-client/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Learning Context Client
=======================

[](#learning-context-client)

This is a PHP implementation for the Learning Context API

Token Storage
-------------

[](#token-storage)

To use this API, you have to implement a token storage which implements the `LearningContextClient\Storage\StorageInterface`. Storage clases using the `$_SESSION` array and Zend Session are already provided in `LearningContextClient\Storage\SessionArrayStorage` and `LearningContextClient\Storage\ZendSessionStorage` respectively.

Configuration
-------------

[](#configuration)

To run the Client, you have to create a `LearningContextClient\Config` object. It recieves your appId and appSecret, a callback URL which will be called after OAuth authorization and handles the refresh token and an instance of `LearningContextClient\Storage\StorageInterface`. It suffices to do any request to the API or to call the `LearningContextClient:::getTokenManager` function.

Usage
-----

[](#usage)

Create an instance of `LearningContextClient\Client` and provide it with your configuration to use the API.

```
$storage = new \LearningContextClient\Storage\SessionArrayStorage();
$config = new \LearningContextClient\Config($APP_ID, $APP_SECRET, $CALLBACK_URL, $storage);
$lc = new \LearningContextClient\Client($config);

```

### Obtain token

[](#obtain-token)

To obtain a token, you simple have to call any API interface or you call the `LearningContextClient::getTokenManager` function.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3811d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1559538?v=4)[xelax90](/maintainers/xelax90)[@xelax90](https://github.com/xelax90)

---

Top Contributors

[![xelax90](https://avatars.githubusercontent.com/u/1559538?v=4)](https://github.com/xelax90 "xelax90 (3 commits)")

### Embed Badge

![Health badge](/badges/xelax90-learning-context-client/health.svg)

```
[![Health](https://phpackages.com/badges/xelax90-learning-context-client/health.svg)](https://phpackages.com/packages/xelax90-learning-context-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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