-
Notifications
You must be signed in to change notification settings - Fork 40
System requirements
This class library is written for PHP 8.1+ (use version 4 for PHP 5.6+). It includes native support for MySQLi, SQL Server, Oracle, PostgreSQL and PDO database connections, but others can be used by writing an override to the DataConnector\DataConnector class. The curl and openssl PHP extensions are also recommended.
There is a dependency on the firebase/php-jwt PHP library to handle JWTs, but the library also has native support for the Web Token JWT Framework library which can be used by assigning it in your code.
...
Jwt\Jwt::setJwtClient(new Jwt\WebTokenClient());
...
The library can be installed by including it in your composer.json file; for example:
"require": {
"php": ">=8.3",
"celtic/lti": "^5.3",
"web-token/jwt-framework": "^3.4|^4.1",
"symfony/clock": "^7.0|^8.0"
}
Note the requirement for the symfony/clock library as well (not required for versions of the web-token/jwt-framework library prior to version 4).
Other JWT libraries can be used by writing a new Jwt\ClientInterface. Contributions of additional JWT client interfaces are welcomed.
© 2025 Stephen P Vickers. All Rights Reserved.