rllngr/kirby-moniter
最新稳定版本:v1.1.3
Composer 安装命令:
composer require rllngr/kirby-moniter
包简介
Kirby CMS plugin — exposes a protected status endpoint for the Moniter dashboard
README 文档
README
A lightweight Kirby CMS plugin that exposes a secured status endpoint for the Moniter dashboard — tracks version and uptime of client websites.
Installation
Via Composer (recommended)
composer require rllngr/kirby-moniter
Manual
Copy the folder into site/plugins/moniter/.
Configuration
Add the API key to site/config/config.php:
return [ 'moniter.key' => 'your-key-generated-by-moniter', // ... ];
The key is automatically generated by the Moniter dashboard when adding a client.
Endpoint
GET /moniter/status
Header: X-Moniter-Key: <key>
Response
{
"kirby": "5.3.2",
"plugins": {
"author/plugin": "1.2.0"
}
}
Error (invalid key)
{ "error": "Unauthorized" }
HTTP 401
Security
- Key comparison uses
hash_equals()(timing attack protection) - Without a valid
X-Moniter-Keyheader, the endpoint always returns401 - Never commit the key in the client site repository — use an environment variable if needed
Requirements
- Kirby 4.x or 5.x
- PHP 8.0+
License
MIT — rollinger.design
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-22