celtic / lti
PHP class library for building LTI integrations
Installs: 118 663
Dependents: 6
Suggesters: 0
Security: 0
Stars: 48
Watchers: 12
Forks: 38
Open Issues: 2
Requires
- php: >=8.1
- firebase/php-jwt: ^6.8
- dev-master
- v5.1.4
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.2
- v5.0.1
- v5.0.0
- v5.0.0-rc2
- v5.0.0-rc1
- v4.10.3
- v4.10.2
- v4.10.1
- v4.10.0
- v4.9.0
- v4.8.0
- v4.7.3
- v4.7.2
- v4.7.1
- v4.7.0
- v4.6.5
- v4.6.4
- v4.6.3
- v4.6.2
- v4.6.1
- v4.6.0
- v4.5.4
- v4.5.3
- v4.5.2
- v4.5.1
- v4.5.0
- v4.4.1
- v4.4.0
- v4.3.1
- v4.3.0
- v4.2.1
- v4.2.0
- v4.1.0
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.3.1
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.2
- v3.1.1
- v3.1.0
- dev-support/v4
- dev-php8p1
- dev-support/v3
This package is auto-updated.
Last update: 2024-11-16 15:57:13 UTC
README
This set of PHP classes encapsulates the code required by an LTI compliant tool provider to communicate with an LTI tool consumer. It includes support for LTI 1.1 and the unofficial extensions to Basic LTI, as well as the registration process and services of LTI 1.2/2.0, and the new security model introduced by LTI 1.3. The Names and Role Provisioning service and the Assignment and Grade services (Line Item, Result and Score) are also supported using either of the LTI security models.
These classes are designed as an update to the LTI Tool Provider class library and a replacement for the library at https://github.com/IMSGlobal/LTI-Tool-Provider-Library-PHP which is no longer supported.
Whilst supporting LTI is relatively simple, the benefits to using a class library like this one are:
- the abstraction layer provided by the classes keeps the LTI communications separate from the application code;
- the code can be re-used between multiple tool providers;
- LTI data is transformed into useful objects and missing data automatically replaced with sensible defaults;
- the outcomes service function uses LTI 1.1 or the unofficial outcomes extension according to whichever is supported by the tool consumer;
- the unofficial extensions for memberships and setting services are supported;
- additional functionality is included to:
- enable/disable a consumer key;
- set start and end times for enabling access for each consumer key;
- set up arrangements such that users from different resource links can all collaborate together within a single tool provider link;
- LTI applications can take advantage of LTI updates with minimal impact on their code.
The GitHub repository provides access to the source files and documentation. The example Rating LTI application is based on this library to further illustrate how it can be used.