定制 cboxdk/laravel-health 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cboxdk/laravel-health

Composer 安装命令:

composer require cboxdk/laravel-health

包简介

Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel

README 文档

README

Latest Version on Packagist GitHub Tests Action Status PHPStan Total Downloads PHP Version Laravel Version

Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel.

Quick Start

composer require cboxdk/laravel-health
php artisan vendor:publish --tag="health-config"
curl http://localhost/health

Features

  • Kubernetes Probes — liveness, readiness, and startup endpoints out of the box
  • Prometheus Metrics/health/metrics with health check status and system metrics
  • 10 Built-in Checks — database, cache, queue, storage, Redis, environment, schedule, CPU, memory, disk space
  • System Metrics — CPU load, memory, disk, network via cboxdk/system-metrics
  • Container Aware — automatic cgroup detection for Docker/Kubernetes
  • JSON Metrics API — structured system metrics at /health/metrics/json
  • HTML Dashboard — optional real-time status UI
  • Token & IP Auth — protect endpoints with bearer tokens and IP allowlists
  • Response Caching — configurable TTL to reduce check overhead
  • Fully Extensible — implement HealthCheck contract to add custom checks

Requirements

  • PHP 8.3+
  • Laravel 11.x or 12.x

Documentation

Full documentation is available in the docs/ directory.

Testing

composer test
composer analyse
composer format

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固