marshallu/mu-health-check 问题修复 & 功能扩展

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

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

marshallu/mu-health-check

最新稳定版本:1.0.1

Composer 安装命令:

composer require marshallu/mu-health-check

包简介

Exposes a /_health endpoint for uptime monitoring.

README 文档

README

Exposes a /_health endpoint for uptime monitoring on Marshall University's WordPress sites.

  • Package: marshallu/mu-health-check
  • Type: WordPress plugin

Installation

Composer Installation

composer require marshallu/mu-health-check

Composer will install the plugin to wp-content/plugins/mu-health-check/. Activate it from the WordPress admin or via WP-CLI:

wp plugin activate mu-health-check

Usage

Once activated, the plugin exposes a health check endpoint at:

https://yoursite.com/_health

Response

Success (HTTP 200):

{"status": "ok", "db": true}

Failure (HTTP 500):

{"status": "error", "db": false}

The endpoint performs a simple database connectivity check by executing SELECT 1.

Development

# Install dev dependencies
composer install

# Check coding standards
composer run lint

# Auto-fix coding standards violations
composer run format

# Run static analysis
composer run analyse

All code follows WordPress Coding Standards.

File Structure

mu-health-check/
├── mu-health-check.php    # Plugin entry point
├── composer.json          # Package definition & dev dependencies
├── phpcs.xml              # PHP CodeSniffer configuration
├── phpstan.neon           # PHPStan configuration
└── README.md              # Documentation

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固