countless-integers/laravel-health-check
Composer 安装命令:
composer require countless-integers/laravel-health-check
包简介
Customizable health-checks Laravel applications
关键字:
README 文档
README
Installation
PHP 8.2+ is required.
$ composer require countless-integers/laravel-health-check
$ php artisan vendor:publish
Configuration
Package publishes its config to your project's and it can be found at config/health-check.php.
Gotchas
- even though all checker classes are optional, all the libraries that they depend on are not
- no aliases for check, instead check class names are used
Configuration keys
checkers
List of checker classes that should run on service check. By default, all available checkers are included in the exported configuration. You can disable the ones you don`t want by removing their key from this array.
Some of the checkers can or need to be configured. List of available configuration options:
| Checker class | Configuration key | Supported Values | Default value |
|---|---|---|---|
CacheChecker |
- | - | - |
DbChecker |
query (string) |
raw SQL query | SHOW TABLES |
DiskSpaceChecker |
min_free_space (required) |
Value with a SI prefix (KB, MB, GB, TB), e.g. 1GB |
- |
DiskSpaceChecker |
drive_path (string) |
mount path | . |
LogFileChecker |
log_path (string) |
writable log path | /var/log/laravel.log |
StorageChecker |
drives (required) |
drive key configures in filesystems configuration |
- |
DynamodbChecker |
- | requires ListTables permission | - |
DynamodbChecker |
tables ([]string) |
table names, requires DescribeTable permission | - |
SQSChecker |
queue_url (required) |
queue url, used to identify the queue | - |
PingChecker |
domains (required, []string) |
list of urls to ping | - |
PingChecker |
timeout (int) |
timeout value for each check | 5 (sec) |
extended_checks
Same format as checkers, but these checks are only run if the endpoint was called with extended option (see below).
Other options
| Configuration key | Supported Values | Default value |
|---|---|---|
access_token |
null |
(string) |
extended |
null |
(bool) |
Contribution guidelines
PR-s need to:
- include a description explaining the problem and solution
- pass static analysis (uses psalm, ran on CI)
- pass test (uses codeception, ran on CI)
Running tests
You can use composer scripts:
-
to run all tests:
$ composer test -
to run only unit tests:
$ composer unit-test -
to run only unit tests with test coverage:
$ composer unit-test-coverage -
to view the coverage report (mac only):
$ composer coverage-report -
to run static analysis:
$ composer static-analysis -
to run all:
$ composer qa
countless-integers/laravel-health-check 适用场景与选型建议
countless-integers/laravel-health-check 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17.7k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「health-check」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 countless-integers/laravel-health-check 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 countless-integers/laravel-health-check 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 countless-integers/laravel-health-check 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An expansion pack for Spatie Laravel Health package
Production-ready Symfony bundle for comprehensive application health checks with database, Redis, S3, and HTTP endpoint monitoring. Security-first design with auto-tagging support.
Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel
Alfabank REST API integration
A tile bringing support for ukfast/laravel-health-check to spatie/laravel-dashboard.
Simple package to health-check
统计信息
- 总下载量: 17.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-03