silpo-tech/health-check-bundle 问题修复 & 功能扩展

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

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

silpo-tech/health-check-bundle

Composer 安装命令:

composer require silpo-tech/health-check-bundle

包简介

Health check bundle

README 文档

README

CI codecov License: MIT

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固