marshallu/mu-health-check

Exposes a /_health endpoint for uptime monitoring.

Maintainers

Package info

github.com/marshallu/mu-health-check

Type:wordpress-plugin

pkg:composer/marshallu/mu-health-check

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-04-02 13:09 UTC

This package is auto-updated.

Last update: 2026-04-02 13:11:54 UTC


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