PHPackages                             brunogoossens/easy-lti - 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. brunogoossens/easy-lti

ActiveLibrary[API Development](/categories/api)

brunogoossens/easy-lti
======================

LTI 1.1 Provider library for PHP.

319PHP

Since Aug 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/brunogoossens/easy-lti)[ Packagist](https://packagist.org/packages/brunogoossens/easy-lti)[ RSS](/packages/brunogoossens-easy-lti/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Easy LTI 1.1 Provider
=====================

[](#easy-lti-11-provider)

This is a PHP library to connect your PHP application to an LTI consumer platform with outcome and deeplinking support.

Install library
===============

[](#install-library)

```
@TODO add this library to packagist.org so an easy composer install and autoload is possible.

```

How to use
==========

[](#how-to-use)

Validate LTI request
--------------------

[](#validate-lti-request)

```
use BrunoGoossens\LTI\LTIProvider;

$lti = new LTIProvider('key', 'secret');
$lti->validateRequest(); // throws an exception if the LTI launch is invalid.
```

> The OAuth nonce parameter is not validated. To validate this you should add some kind of database.

After validating the LTI launch request, you can be sure the $\_REQUEST values are secure to use.

Read a score
------------

[](#read-a-score)

```
$lti->readScore($outcome_service_url, $result_sourcedid);
```

Write a score
-------------

[](#write-a-score)

```
$lti->postScore($outcome_service_url, $result_sourcedid, 0.7); // score is a value between 0 and 1.
```

Deeplinking (Content-Item Message)
----------------------------------

[](#deeplinking-content-item-message)

Insert content items into the tool consumer.

```
$contentItems = array(
  array(
    '@type' => 'LtiLinkItem',
    'mediaType' => 'application/vnd.ims.lti.v1.ltilink',
    'title' => 'dummy title',
    'icon' => array(
      '@id' => 'https://example.com/icon.jpeg',
      'width' => 32,
      'height' => 32
    )
  )
);

$lti->returnContentItems($url, $contentItems);
```

This action will submit an auto generated form back to the tool consumer.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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/2a055e2efba4e6b35bf965b9d15c33255be12d5b2338447b0abd829ff9b89c5e?d=identicon)[brunogoossens](/maintainers/brunogoossens)

---

Top Contributors

[![brunogoossens](https://avatars.githubusercontent.com/u/1636664?v=4)](https://github.com/brunogoossens "brunogoossens (8 commits)")

### Embed Badge

![Health badge](/badges/brunogoossens-easy-lti/health.svg)

```
[![Health](https://phpackages.com/badges/brunogoossens-easy-lti/health.svg)](https://phpackages.com/packages/brunogoossens-easy-lti)
```

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

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

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