escolalms/lrs
Laravel integration for a Learning Record Store (LRS), letting your app store, query, and exchange xAPI learning activity statements so you can track and report on learner experiences across systems.
Release 0.0.13 is a small but meaningful update: it adds PHP 8.2 support and changes AuthServiceProvider. Start by confirming your app meets the package’s PHP/Laravel constraints, install with composer require escolalms/lrs, publish the package config/migrations using the provider documented by the package, then run migrations and configure authentication in config/lrs.php.
Run php artisan route:list and locate the LRS routes before writing client code. The first practical use case is recording a learning event: when a learner completes a lesson, send an xAPI statement to the LRS and then query statements by actor/activity/verb for reporting or progress display.
AuthServiceProvider update is the main regression surface: verify guards, middleware, token handling, and any local overrides.RefreshDatabase, fake authenticated users/tokens, and assert both accepted statements and validation failures. A useful smoke test is posting a minimal statement and reading it back.php artisan config:clear and, where relevant, php artisan route:clear. Auth provider changes can be masked by cached config.AuthServiceProvider. Re-run auth-related feature tests.Content-Type: application/json, include valid actor, verb, and object, and use ISO 8601 timestamps. Statements are generally immutable, so correct mistakes by posting new statements rather than editing records.route:list because route prefixes and middleware are configurable.How can I help you explore Laravel packages today?