marcorieser/statamic-vitals
最新稳定版本:v1.2.0
Composer 安装命令:
composer require marcorieser/statamic-vitals
包简介
Provide vitals of your Statamic installation for external usage.
关键字:
README 文档
README
You can monitor your installations with this addon on vitals-for-statamic.com.
Provide vitals of your Statamic installation for external usage.
{
"system": {
"name": "System name",
"domain": "https:\/\/site.tld",
"environment": "production",
"laravel": "9.6.0",
"php": "8.1.4",
"debug": false
},
"statamic": {
"version": "3.3.4",
"cp_url": "https:\/\/site.tld\/cp",
"latest_version": "3.4.1",
"pro": true,
"antlers_version": "runtime",
"static_page_cache": "full",
"update_available": true
},
"addons": [
{
"name": "Collaboration",
"package": "statamic\/collaboration",
"version": "0.4.0",
"latest_version": "0.4.0",
"update_available": false
},
{
"name": "Export",
"package": "youfront\/statamic-export",
"version": "1.0.1",
"latest_version": "1.0.3",
"update_available": true
}
],
"updates_available": 2
}
How to Install
You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:
composer require marcorieser/statamic-vitals
Configuration
Be sure to generate an access key which is used to authenticate external requests.
php please vitals:generate-key
How to Use
Send a post request to the vitals endpoint https://site.tld/api/statamic-vitals/vitals.
curl --request POST \ --url https://site.tld/api/statamic-vitals/vitals \ --header 'Content-Type: application/json' \ --data '{ "access_key":"4Vz?xNc_eE&2uqQL" }'
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
access_key |
The access key in your .env file |
'' |
* |
clear_cache |
Whether the vitals should be generated freshly | false |
统计信息
- 总下载量: 794
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-07