Search by

nwidart / laravel-actuator

nWidart

Production-ready monitoring endpoints for Laravel, modelled on Spring Boot Actuator.

Package info

github.com/nWidart/laravel-actuator

Homepage

pkg:composer/nwidart/laravel-actuator

Statistics

Installs: 625

Dependents: 2

Suggesters: 2

Stars: 14

Open Issues: 0

1.3.0 2026-11-22 20:59 UTC

This package is auto-updated.

Last update: 2026-11-22 22:37:09 UTC


README

Laravel Actuator: production-ready monitoring endpoints for Laravel

Laravel Actuator

Latest Version on Packagist Software License CI Total Downloads

Production-ready endpoints to monitor your Laravel application: health checks for Kubernetes probes and load balancers, metrics for Prometheus, build and runtime info, configuration, routes and scheduled tasks.

Documentation: nwidart.github.io/laravel-actuator

Requirements

  • PHP 8.2 or later
  • Laravel 12 or 13
  • Redis for the metrics in production

Installation

composer require nwidart/laravel-actuator

The service provider registers itself. To change the defaults, publish the configuration file:

php artisan vendor:publish --tag=actuator-config

Usage

The health endpoint is exposed at once:

curl http://localhost/actuator/health
{"status": "UP", "groups": ["liveness", "readiness"]}

/actuator/health/liveness and /actuator/health/readiness are ready for Kubernetes probes.

The other endpoints (info, env, mappings, scheduledtasks and prometheus) reveal details about your application, so they are not exposed by default. Protect them with middleware, then expose them in config/actuator.php:

'exposure' => [
    'include' => ['health', 'info', 'prometheus'],
],

'info' => [
    'middleware' => ['web', 'auth', 'can:viewActuator'],
],

Define the viewActuator gate in your application, as secure endpoints shows.

Metrics are recorded with no code. Point Prometheus at /actuator/prometheus to scrape them.

Learn more

The documentation covers the rest:

Testing

composer test
composer analyse
composer lint

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email n.widart@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.