Installation
Requirements
- PHP >=8.2
- ext-json
Install via Composer
composer require larananas/lumen-json-rpc
Composer consumers install the normal tagged package archive. Repository-only assets such as tests, examples, source docs, CI workflows, and the docs-site builder are intentionally excluded from the package.
Optional extras
| Extra | Purpose |
|---|---|
ext-zlib | Enables gzip request/response compression support |
firebase/php-jwt | Broader JWT algorithm support beyond built-in HMAC |
Without optional extras, the library works normally.
Verify installation
php -r "echo class_exists('Lumen\\JsonRpc\\Server\\JsonRpcServer') ? 'OK' : 'FAIL';"