laravel-myaku-health-check) with:
Route::get('/health', ...)).cache via Cache::store()).config/ system instead of Symfony’s YAML.doctrine/dbal for DB checks (Laravel already includes this).Cache component for cache checks (Laravel uses illuminate/cache; compatibility may need abstraction).sys_get_memory_usage()).TrustProxies, Throttle) may conflict with the bundle’s auth logic.cache.default) differ from Symfony’s (cache.app).Controller be replaced with a Laravel-compatible route handler without breaking functionality?Cache and DB services map to Symfony’s auto-detection?laravel-debugbar, Prometheus exporters)?VerifyCsrfToken, Authenticate)?Route::get('/health', ...) with a custom controller.publishes() in a service provider.Cache facade (Illuminate\Support\Facades\Cache) instead of Symfony’s Cache component.doctrine/dbal checks with Laravel’s DB::connection()->getPdo().app/Http/Middleware/CheckHealthToken.php) for token/IP validation.MyakuHealthCheck\Checker\*) and build a Laravel package./up, /ready) and requirements.Cache, DB)./health endpoint.config/myaku-health-check.php.503 for failed checks).| Feature | Symfony 7.4+/8.0+ | Laravel (Adapted) |
|---|---|---|
| Disk Space Check | ✅ | ✅ |
| RAM Check | ✅ (Linux) | ⚠️ (Linux only) |
| Database Check | ✅ (DBAL) | ✅ (Laravel DB) |
| Cache Check | ✅ (Symfony Cache) | ✅ (Laravel Cache) |
| IP Whitelisting | ✅ | ✅ (Middleware) |
| Token Auth | ✅ | ✅ (Middleware) |
| Auto-Detection | ✅ | ⚠️ (Manual mapping) |
config/myaku-health-check.php).connected: false with error field) simplify troubleshooting.auth:api).503 responses must be distinguished from other failures (e.g., 5xx errors).Cache::remember('health', 60, ...)) to reduce load.| Scenario | Impact | Mitigation |
|---|---|---|
| Disk space threshold breached | 503 response |
Alerting (e.g., PagerDuty) + auto-scaling. |
| Database connection fails | 503 + error in JSON |
Retry logic in consumers; circuit breaker. |
| Cache unavailable | 503 + error in JSON |
Graceful degradation (skip cache check). |
| Invalid token/IP | 403 |
Rate-limiting to prevent abuse. |
| RAM check fails (non-Linux) | Missing memory field |
Document limitation; use alternative metrics. |
503 vs. other errors.ENABLE_HEALTH_CHECK=true).How can I help you explore Laravel packages today?