frosty-media/wp-health-check
最新稳定版本:v1.0.3
Composer 安装命令:
composer require frosty-media/wp-health-check
包简介
A simple WordPress health check endpoint.
README 文档
README
Simple WordPress health check endpoint
Installation
composer require frosty-media/wp-health-check
Additional requirements
Composer autoloading should be including in application's bootstrap, in this case the wp-config.php file.
If running Nginx, add the following to your sites conf rules:
rewrite ^/meta/health-check/?$ /vendor/frosty-media/wp-health-check/src/check.php last;
If running Apache, add the following to your .htaccess file (before any WordPress rules):
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^meta/health-check/?$ /vendor/frosty-media/wp-health-check/src/check.php [L] </IfModule>
If you would like to include the MU Plugin (which creates the internal REST API route wp-json/health/check?)
Update your scripts.post-update-cmd, or run
composer config scripts.post-update-cmd.0 "FrostyMedia\\WpHealthCheck\\Composer\\Scripts::postUpdate"
{
"scripts": {
"post-update-cmd": [
"FrostyMedia\\WpHealthCheck\\Composer\\Scripts::postUpdate"
]
}
}
统计信息
- 总下载量: 118
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-05
