devuri/advanced-custom-site-status
Composer 安装命令:
composer require devuri/advanced-custom-site-status
包简介
Adds a custom health check endpoint with rate limiting to your WordPress site. Supports a customizable endpoint slug through a constant.
README 文档
README
Advanced Custom Site Status is a WordPress plugin that adds a custom health check endpoint with rate limiting to your WordPress site. This endpoint is specifically designed to check database connectivity, ensuring your WordPress site's database is accessible and responsive. The plugin supports a customizable endpoint slug through a constant, allowing for personalized integration into your WordPress environment.
Features
- Custom Health Check Endpoint: Provides a dedicated URL to check the site's health, focusing on database connectivity.
- Rate Limiting: Protects your site from potential abuse by limiting the number of health check requests within a specific time frame.
- Customizable Endpoint Slug: Allows the setting of a custom slug for the health check endpoint through a WordPress constant.
Requirements
- WordPress 5.3.0 or higher
- PHP 7.3.5 or higher
Installation
Via Composer
To install the plugin using Composer, run the following command:
composer require devuri/advanced-custom-site-status
Replace your-vendor with your actual vendor name on Packagist if you have submitted the plugin there.
Manual Installation
- Download the plugin files from the GitHub repository.
- Upload the
advanced-custom-site-statusdirectory to your WordPress site'swp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
Configuration
To customize the endpoint slug, define the CUSTOM_HEALTH_CHECK_SLUG constant in your wp-config.php file like so:
define('CUSTOM_HEALTH_CHECK_SLUG', 'my-custom-health-endpoint');
If the constant is not defined, the plugin will default to using health-check-site-status as the endpoint slug.
Usage
After installation and activation, the health check can be accessed via the configured slug (or the default slug if not configured). For example:
https://yourdomain.com/my-custom-health-endpoint
This URL will return a JSON response indicating the health status of your WordPress site's database.
Contributing
Contributions are welcome! Please feel free to submit pull requests or open issues to improve the plugin.
License
The plugin is licensed under the GPLv2. For more details, see the License URI.
devuri/advanced-custom-site-status 适用场景与选型建议
devuri/advanced-custom-site-status 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 211 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 02 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 devuri/advanced-custom-site-status 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 devuri/advanced-custom-site-status 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 211
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 17
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2024-02-17