illuma-law / healthcheck-octane
Focused octane server health check for Spatie's Laravel Health package.
Package info
github.com/eloquage/healthcheck-octane
Language:Blade
pkg:composer/illuma-law/healthcheck-octane
Fund package maintenance!
Requires
- php: ^8.3
- illuminate/contracts: ^12.0||^13.0
- illuminate/database: ^12.0||^13.0
- illuminate/support: ^12.0||^13.0
- laravel/octane: ^2.0
- spatie/laravel-health: ^1.39
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- mrpunyapal/peststan: ^0.2.12
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^11.1.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.35
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-23 13:41:49 UTC
README
A Laravel Health check that runs octane:status and reports whether your configured Laravel Octane server is running.
Requirements
- PHP 8.3 or later
- Laravel 12 or 13
- Laravel Octane and Spatie Laravel Health
Install
composer require illuma-law/healthcheck-octane
Use
Register the check with your Laravel Health checks:
use IllumaLaw\HealthCheckOctane\OctaneServerCheck; use Spatie\Health\Facades\Health; Health::checks([ OctaneServerCheck::new(), ]);
The check runs octane:status using the server set in config/octane.php. A running server is healthy. A stopped server is skipped in local and testing; elsewhere it warns by default.
Configuration
Publish the package configuration if you want to change the defaults:
php artisan vendor:publish --tag=healthcheck-octane-config
In config/healthcheck-octane.php:
- Set
requiredtotrueto fail the health check when Octane is stopped. The defaultfalsereports a warning. - Set
skip_outside_production_liketotrueto skip a stopped-server result outside production-like environments. The default isfalse.
You can also set HEALTH_OCTANE_REQUIRED and HEALTH_OCTANE_SKIP_OUTSIDE_PRODUCTION in your environment.
Tests
composer install
composer test
composer analyse
License
MIT. See LICENSE.md.
