mainlycode/health-bundle
Health Bundle adds configurable health-check endpoints to PHP applications, letting monitoring tools verify application, database, cache, and dependency status through simple, extensible checks.
/health contract (probe path, status codes, payload shape), this package is one candidate implementation to evaluate against building it in-house./health endpoint is roughly 30–50 lines of routing and a few dependency pings. The buy-vs-build conversation this package actually forces isn't "can we afford it" but "what do we want behind the endpoint" — liveness vs. readiness, which dependencies to check, whether a degraded dependency should return 503 or 200-with-warnings, and who owns that logic when it pages someone at 3 a.m.Adopt only if all of these hold:
/up health route, and spatie/laravel-health covers deeper dependency checks. Confirm which framework the target service actually runs before this enters a backlog.Look elsewhere (or build in-house) when:
For executives: This is a tiny, MIT-licensed Symfony bundle that adds a /health endpoint — the URL load balancers and monitoring tools use to check whether a service is alive. Cost is near zero and there are no licensing concerns. The caveat is maturity: zero stars, zero downstream users, one maintainer. My recommendation is to treat it as an input to our health-check standard rather than a production dependency. Building the equivalent ourselves is under a day of engineering and gives us full control over what "healthy" means — which is the part that actually matters during an incident. Decision requested: approve in-house implementation as the default, with this package as a reference, unless a team on Symfony needs a stopgap this sprint.
For engineering: Thin wrapper around a route plus dependency checks. It's a Symfony bundle — not usable in our Laravel services. Before any adoption: read the source end to end, confirm the release tags are real and reproducible, pin the version, and document a fork-or-replace path. Do not put an unvetted third-party health endpoint behind a production load balancer without deciding what it returns when a downstream dependency is degraded rather than down.
How can I help you explore Laravel packages today?