illuma-law/healthcheck-octane 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

illuma-law/healthcheck-octane

最新稳定版本:v0.1.4

Composer 安装命令:

composer require illuma-law/healthcheck-octane

包简介

Focused octane server health check for Spatie's Laravel Health package.

README 文档

README

Tests Packagist License Latest Stable Version

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:status command 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.

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固