apiboxsym/health-check-bundle
Local Symfony bundle for ApiBoxSym that adds a simple health check endpoint. Exposes GET /health returning {"status":"ok"} for monitoring and infrastructure probes. Includes controller, bundle entrypoint, and tests; MIT licensed.
/health) is a standardized pattern (e.g., Kubernetes probes, load balancers, monitoring tools). Laravel already has built-in solutions (e.g., php artisan route:list, custom middleware, or packages like spatie/laravel-health), reducing the need for this bundle.ApiBoxSym's API host, making it less reusable in Laravel’s modular ecosystem.symfony/console, symfony/http-kernel) to function, adding ~10MB+ of dependencies to a Laravel app.Illuminate/Routing) may clash with Symfony’s routing system unless explicitly isolated.ContainerInterface differs from Laravel’s Container, necessitating adapters or wrapper classes.spatie/laravel-health, beberlei/healthcheck) with better ecosystem support./health endpoint?ApiBoxSym actively maintained? The 0 stars/dependents and future-dated release (2026) are red flags.spatie/laravel-health) been ruled out?symfony/console and symfony/http-kernel (~10MB)./health via Laravel’s router to a Symfony controller (e.g., using Symfony\Bridge\Laravel\Routing\LaravelRoutes).spatie/laravel-health (100x more maintainable) or a custom solution (e.g., Route::get('/health', fn() => ['status' => 'ok'])).composer.json for conflicts with Symfony packages.symfony/skeleton) and proxy /health via Laravel’s HttpClient or reverse proxy (Nginx/Apache).HealthController logic into a Laravel middleware or route closure.Route::get('/health', function () {
return response()->json(['status' => 'ok']);
});
/health response under load (e.g., 10K RPS).Illuminate\Foundation\Application ≠ Symfony’s KernelInterface. A wrapper class is needed:
class SymfonyKernelWrapper implements KernelInterface {
public function boot() { /* ... */ }
public function shutdown() { /* ... */ }
}
EventDispatcher; Laravel uses Events. Cross-wiring is complex.spatie/laravel-health).ApiBoxSym's roadmap (unknown maintenance status).Symfony\Component\ErrorHandler\Error\FatalError
Call to undefined method Illuminate\Container\Container::getKernel()
monolog versions)./health calls.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Symfony bundle breaks Laravel routes | /health works but other routes 404 |
Isolate routes via middleware. |
| Memory leaks in Symfony services | OOM crashes under load | Use symfony/var-dumper for profiling. |
| PHP version mismatch | Bundle fails to load | Pin Symfony dependencies to exact versions. |
| Abandoned package (2026 release) | No future updates | Fork and maintain internally. |
Extension, DependencyInjection).Recommendation: Avoid this bundle. The integration risk, maintenance burden, and lack of Laravel-native alternatives make it a non-starter unless there’s a critical, unresolved dependency on Symfony’s ecosystem. Instead, use spatie/laravel-health or a custom 10-line route.
How can I help you explore Laravel packages today?