PHPackages                             learnosity/learnosity-demos - 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. learnosity/learnosity-demos

ActiveProject

learnosity/learnosity-demos
===========================

Jumpstart your integration of the Learnosity APIs into your learning platform.

301238[1 issues](https://github.com/Learnosity/learnosity-demos/issues)[12 PRs](https://github.com/Learnosity/learnosity-demos/pulls)PHPCI passing

Since Sep 18Pushed 1mo ago63 watchersCompare

[ Source](https://github.com/Learnosity/learnosity-demos)[ Packagist](https://packagist.org/packages/learnosity/learnosity-demos)[ RSS](/packages/learnosity-learnosity-demos/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (7)DependenciesVersions (23)Used By (0)

Learnosity API Demos
====================

[](#learnosity-api-demos)

Jumpstart your integration of the Learnosity APIs into your learning platform.

Overview
--------

[](#overview)

This repository has been designed to allow users to quickly view and interact with some of the core Learnosity APIs.

Each page shows a basic integration to a specific Learnosity API which you can utilize and learn from.

### Requirements

[](#requirements)

- PHP 8.1+
- You must be connected to the Internet to use this site

Getting Started
---------------

[](#getting-started)

The following shows you how to get the code in this repository up and running as a stand-alone site.

First, get the code with

```
git clone https://github.com/Learnosity/learnosity-demos.git

```

Note: To simplify the next steps, you'll need the `make` utility (usually available in the development tools of your platform). If this option is not available to you, see the next two sections, which show you how to start the demos site manually.

The simple `Makefile` included with this project allows you to start one or the other modes, by running either of the following commands from the `learnosity-demos` directory that was just created.

```
make run-php  # See “Using PHP's native server” below to see what this does

```

You can then visit  in a browser.

Note that you must use *localhost* as the domain (not 127.0.0.1). Any port is fine but the internal security in some of the APIs is domain restricted. So until you contact Learnosity to whitelist specific domains, access is restricted to *localhost*.

If port 8080 is already in use, you can specify a custom port instead, with

```
make run-php PORT=8000  # Using custom port 8000

```

You would then be able visit  in a browser.

### Using PHP's native server

[](#using-phps-native-server)

You can use PHP's built-in server to quickly get up and running.

```
git clone https://github.com/Learnosity/learnosity-demos.git
cd learnosity-demos
php -S localhost:8080 --docroot www

```

Consumer
--------

[](#consumer)

This package comes with demo security (consumer) credentials. If you have your own consumer details (as provided by Learnosity) you may use them by editing `lrn_config.php`

Documentation
-------------

[](#documentation)

More API documentation is available at the [Learnosity Developer Documentation](https://help.learnosity.com/hc/en-us/categories/16266193425053)

PHP dependency management using Composer
----------------------------------------

[](#php-dependency-management-using-composer)

While this demonstration project ships with dependency libraries (such as the [Learnosity SDK](https://github.com/Learnosity/learnosity-sdk-php)) for ease of use, it is not recommended practice to do so on production projects. The [composer](https://getcomposer.org) tool can be used for the purpose of installing and upgrading third-party libraries.

See [composer-getting-started](https://getcomposer.org/doc/00-intro.md) for instructions on setting it up on your platform. You can then try it out on this project, by running the following in the `learnosity-demos` directory you cloned using `git` as detailed in the previous sections.

```
composer install # Reinstall dependencies as specified in the shipped composer.lock

composer update # Upgrade dependencies according to constraints in composer.json

```

Note that the `make`-based instructions in the “Getting Started” section take care of the following for you.

For simplicity, the `get-composer.php` script can be used to fetch a local version of composer. It will be named `composer.phar`, and will have to be called as `./composer.phar` instead of just `composer`.

If using macOS, you can set up [Homebrew](https://brew.sh/) to install php and composer.

```
brew install php
brew install composer

```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance60

Regular maintenance activity

Popularity20

Limited adoption so far

Community32

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

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/42ac2bf5d0b7730422a8f5caa80a96f2fee305289a23b4bbf4b51fb79537df85?d=identicon)[learnosity\_oss](/maintainers/learnosity_oss)

---

Top Contributors

[![michaelsharman](https://avatars.githubusercontent.com/u/663796?v=4)](https://github.com/michaelsharman "michaelsharman (496 commits)")[![lrnci](https://avatars.githubusercontent.com/u/3663673?v=4)](https://github.com/lrnci "lrnci (261 commits)")[![hbalseiro](https://avatars.githubusercontent.com/u/38862728?v=4)](https://github.com/hbalseiro "hbalseiro (155 commits)")[![learnosity-ci](https://avatars.githubusercontent.com/u/20829694?v=4)](https://github.com/learnosity-ci "learnosity-ci (91 commits)")[![gonzalozawa](https://avatars.githubusercontent.com/u/12135243?v=4)](https://github.com/gonzalozawa "gonzalozawa (88 commits)")[![mcgoughn](https://avatars.githubusercontent.com/u/5512167?v=4)](https://github.com/mcgoughn "mcgoughn (60 commits)")[![marklynch](https://avatars.githubusercontent.com/u/1031493?v=4)](https://github.com/marklynch "marklynch (57 commits)")[![keremdaldal](https://avatars.githubusercontent.com/u/1330834?v=4)](https://github.com/keremdaldal "keremdaldal (44 commits)")[![shtrom](https://avatars.githubusercontent.com/u/160280?v=4)](https://github.com/shtrom "shtrom (37 commits)")[![walsh-conor](https://avatars.githubusercontent.com/u/14177389?v=4)](https://github.com/walsh-conor "walsh-conor (36 commits)")[![sebablanco](https://avatars.githubusercontent.com/u/1029001?v=4)](https://github.com/sebablanco "sebablanco (30 commits)")[![Cr8tiveDav](https://avatars.githubusercontent.com/u/114363324?v=4)](https://github.com/Cr8tiveDav "Cr8tiveDav (23 commits)")[![michal-huzevka](https://avatars.githubusercontent.com/u/11144981?v=4)](https://github.com/michal-huzevka "michal-huzevka (23 commits)")[![aaron-ji-lrn](https://avatars.githubusercontent.com/u/50093715?v=4)](https://github.com/aaron-ji-lrn "aaron-ji-lrn (22 commits)")[![jack-vo](https://avatars.githubusercontent.com/u/9317436?v=4)](https://github.com/jack-vo "jack-vo (22 commits)")[![amlearn](https://avatars.githubusercontent.com/u/7483539?v=4)](https://github.com/amlearn "amlearn (21 commits)")[![mobywhale-chan](https://avatars.githubusercontent.com/u/1505133?v=4)](https://github.com/mobywhale-chan "mobywhale-chan (20 commits)")[![TheRealEdDawson](https://avatars.githubusercontent.com/u/1683759?v=4)](https://github.com/TheRealEdDawson "TheRealEdDawson (20 commits)")[![jordan-hume-lrn](https://avatars.githubusercontent.com/u/47511409?v=4)](https://github.com/jordan-hume-lrn "jordan-hume-lrn (19 commits)")[![christian-crisologo-lrn](https://avatars.githubusercontent.com/u/69463964?v=4)](https://github.com/christian-crisologo-lrn "christian-crisologo-lrn (17 commits)")

---

Tags

demoslearnosity

### Embed Badge

![Health badge](/badges/learnosity-learnosity-demos/health.svg)

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

PHPackages © 2026

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