illuma-law/healthcheck-octane
| Install | |
|---|---|
composer require illuma-law/healthcheck-octane |
|
| Latest Version: | v0.1.4 |
| PHP: | ^8.3 |
| License: | MIT |
| Last Updated: | Jun 22, 2026 |
| Links: | GitHub · Packagist |
Healthcheck octane for Laravel
A focused octane server health check for Spatie's Laravel Health package.
This package provides a simple, direct health check to verify that your Laravel Octane server (RoadRunner, Swoole, or FrankenPHP) is currently running and responsive.
Features
- Server Status Check: Uses the
octane:statuscommand to verify if the configured Octane server is active. - Environment Awareness: Can be configured to automatically skip the check in local or testing environments where Octane might not be running.
- Detailed Meta: Captures the server type and status output for easier monitoring and debugging.
Installation
Require this package with composer:
composer require illuma-law/healthcheck-octane
Usage & Integration
Register the check inside your application's health service provider (e.g. AppServiceProvider or a dedicated HealthServiceProvider), alongside your other Spatie Laravel Health checks:
Basic Registration
use IllumaLaw\HealthCheckOctane\OctaneServerCheck;
use Spatie\Health\Facades\Health;
Health::checks([
OctaneServerCheck::new(),
]);
Expected Result States
The check interacts with the Spatie Health dashboard and JSON endpoints using these states:
- Ok: The Octane server is running successfully.
- Skipped: The check is not running in a production-like environment (if configured).
- Failed: The Octane server is stopped or unreachable.
Testing
Run the test suite:
composer test
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...
APM agent for laravel projects to monitor the application with elastic apm tools...