silpo-tech/health-check-bundle
Composer 安装命令:
composer require silpo-tech/health-check-bundle
包简介
Health check bundle
README 文档
README
About
The Health Check Bundle contains endpoint and services that can be used to check if it is up and running
Installation
Require the bundle and its dependencies with composer:
$ composer require silpo-tech/health-check-bundle
Register the bundle:
// project/config/bundles.php return [ HealthCheck\HealthCheckBundle::class => ['all' => true], ];
Routing:
health_check: resource: '@HealthCheckBundle/Resources/config/routes.yaml'
Configuration:
health_check: apps: # for api web: checkers: - doctrine_mongodb # for workers command: checkers: - doctrine_mongodb
Testing
Run Unit and Integration Tests
composer test:run
Run Full Test Suite (including Application Tests)
For application tests that require database services, you can use Docker Compose:
# Start database services docker-compose -f docker-compose.test.yml up -d # Run all tests including application tests composer test:run # Stop database services docker-compose -f docker-compose.test.yml down
Run Specific Test Suites
# Unit tests only (no external dependencies) php bin/phpunit --testsuite unit # Integration tests only php bin/phpunit --testsuite integration # Application tests only (requires database services) php bin/phpunit --testsuite application
统计信息
- 总下载量: 2.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-20