gavtaylor/laravel-health-route
A small Laravel package that adds a configurable health check route to your application, making it easy for uptime monitors, load balancers, and deployment checks to verify the app is running and responding.
gavtaylor/laravel-health-route is a Laravel package that exposes a health-check route, running a configurable set of checks and rendering results as either an HTML view (for humans) or JSON (for machines). v0.2.0 is an incremental, additive release: three new bundled checks (StorageWritableCheck, LogWritableCheck, EnvironmentCheck) plus two presentation-layer refinements to the default HTML view. Nothing is removed or renamed, so this is a low-risk version bump.
Architecture fit
/health closure.Integration feasibility
composer require plus optional config publish; expected to be a sub-day integration for an existing Laravel app.Technical risk
~0.2.0 and treat upgrades as reviewed changes, not automated bumps.EnvironmentCheck disclosure risk. Environment checks commonly surface app env, debug flags, PHP version, or config values. If the health route is publicly reachable, this becomes an information-disclosure vector. This is the single most important thing to verify before rollout.StorageWritableCheck and LogWritableCheck perform filesystem writes on every invocation. Under aggressive probe intervals (k8s defaults can be every 10s, per replica), that is continuous disk I/O and log noise.LogWritableCheck self-referential failure mode. If the check writes to the log channel to prove writability, a failing log target may produce errors the check itself cannot report. Confirm whether it probes the handler or emits a test record.Key questions
EnvironmentCheck expose any values, and are they gated behind a config flag defaulting to off?Accept header, query parameter, or separate routes? Can JSON be forced deterministically?Stack fit
EnvironmentCheck is enabled.Migration path
Compatibility
"gavtaylor/laravel-health-route": "~0.2.0" — accept patches, gate minors behind review.Sequencing
EnvironmentCheck renders and how JSON is selected.EnvironmentCheck is enabled at all per environment.Maintenance
Support
Scaling
Failure modes
EnvironmentCheck on a reachable route leaking env or config values.Ramp-up
How can I help you explore Laravel packages today?