audunru/reporting-api
A Laravel package that adds a reporting API to your application. Define reports, expose them through API endpoints, and return structured data for dashboards or external clients with a simple, configurable setup.
composer require audunru/reporting-api. v3.0.5 is a patch release over v3.0.4 with no API changes, so it is a safe in-place upgrade.php artisan vendor:publish --tag=reporting-api-config
Check the package README for the exact provider/tag if your install does not expose a config tag..env (API endpoint, token, queue/log channel as applicable), then clear cached config during development:
php artisan config:clear
ShouldQueue on the job that sends the report, use a dedicated queue, and configure retries/backoff. This keeps request latency out of the user path.routes/console.php or the console kernel. Use withoutOverlapping() and, where supported, unique jobs to avoid duplicate sends when schedulers run on multiple servers.UserRegistered, InvoicePaid, etc.) and dispatch a report job. Keep listeners thin: resolve the report definition, then hand off to the queued sender.Http::fake() / Log::fake() (or the package’s own fake if provided) to assert the exact report structure without hitting the remote API.failed() method, log with context, and optionally notify. Report failures should not silently disappear.php artisan config:cache after changing reporting config. Laravel config caching is a common source of “my endpoint/token changed but the app still uses the old value” confusion..env and ensure report payloads logged in non-production environments do not contain PII or secrets. Consider redacting sensitive fields before logging.php artisan queue:restart ensures the new log-sanitisation behaviour is active.composer.json requirements, especially if you are coming from an older major version.Http::fake() to capture the outgoing request and Log::spy() to assert the logged context. If a report is not being sent, check the queue connection, job failures table, and whether the scheduler is actually running (php artisan schedule:list).How can I help you explore Laravel packages today?