atk14/application-status
Composer 安装命令:
composer require atk14/application-status
包简介
The ATK14 application status monitor
关键字:
README 文档
README
The ATK14 application status monitor.
Application Status provides:
- system load information
- access to error logs
- list of currently running SQL queries ordered by duration
- access to exception reports produced by Tracy
Installation
cd path/to/your/atk14/project/
composer require atk14/application-status
ln -s ../../vendor/atk14/application-status/src/app/controllers/application_status/ app/controllers/application_status
ln -s ../../vendor/atk14/application-status/src/app/views/application_status/ app/views/application_status
ln -s ../../vendor/atk14/application-status/src/app/forms/application_status/ app/forms/application_status
ln -s ../../vendor/atk14/application-status/src/app/layouts/application_status/ app/layouts/application_status
After deployment to the production, the Application Status will be accessible on address:
http://your.project.com/application_status/
Configuration
Set up IP-based authentication or HTTP basic authentication. It's even ok to set up both.
// file: config/settings.php
// IP-based authentication
define("APPLICATION_STATUS_ALLOW_FROM","84.42.130.122,84.42.130.123,84.42.121.123/24");
// HTTP basic authentication
define("APPLICATION_STATUS_AUTH_USERNAME","status");
define("APPLICATION_STATUS_AUTH_PASSWORD",'$2a$04$fRdoV2rr6IOmf83E5eH83Oqw8yR5k9HtRWvBSd2pOwev6yoDxKX3W');
It is expected that the password is either a blowfish hash or it is set in plain text.
define("APPLICATION_STATUS_AUTH_PASSWORD","secret");
The blowfish hash can be calculated using the ATK14 console. Because the correct password is compared with the hash in every HTTP request, it is a good idea not to generate too complex hash (with too high rounds value).
$ echo 'echo MyBlowfish::GetHash("secret","",["rounds" => 4]),"\n";' | ./scripts/console
$2a$04$fRdoV2rr6IOmf83E5eH83Oqw8yR5k9HtRWvBSd2pOwev6yoDxKX3W
By default, there is automatic redirection to ssl in production environment. It can be suppressed by setting constant APPLICATION_STATUS_REDIRECT_TO_SSL_AUTOMATICALLY to false:
define("APPLICATION_STATUS_REDIRECT_TO_SSL_AUTOMATICALLY",false);
atk14/application-status 适用场景与选型建议
atk14/application-status 是一款 基于 Smarty 开发的 Composer 扩展包,目前已累计 6.82k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 05 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「monitoring」 「atk14」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 atk14/application-status 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 atk14/application-status 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 atk14/application-status 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Pupiq client for ATK14 applications
A panel for Tracy Debugger with DbMole statistics
ATK14 form field for entering phone numbers
A panel for Tracy Debugger in an ATK14 project. Displays nested list of all rendered templates.
Extended PHP Markdown parser tuned for usage in ATK14 projects
ConfirmationField is a form field for Atk14 applications. It's like the BooleanField (checkbox) but the ConfirmationField must be ticked.
统计信息
- 总下载量: 6.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-24