craftcms/server-check
Composer 安装命令:
composer require craftcms/server-check
包简介
Craft CMS Server Check
关键字:
README 文档
README
This script checks if a web server meets the minimum requirements to run a Craft 4 installation.
Usage
Run the following in a terminal of any *nix environment (e.g. Linux, MacOS, WSL):
curl -Lsf https://raw.githubusercontent.com/craftcms/server-check/HEAD/check.sh | bash
Note You can review the substance of this script before execution.
Alternatives
Web UI
Upload the server/ folder to your web server’s web root and load checkit.php from a browser to get an HTML report.
Remote CLI
The same server/ folder can be uploaded anywhere on your server and used via the command line to get a plain-text report:
php checkit.php
This is equivalent to the default usage instructions, above.
Shell exit codes
If all requirements are met, the script will return an exit code of 0.
The script will return an exit code of 1 if:
-
Any errors are encountered, or requirements are not met
-
An environment variable
CRAFT_STRICT_SERVER_CHECK=1is set, and any warnings are found:CRAFT_STRICT_SERVER_CHECK=1 php server/checkit.php
This can be especially useful in a CI/CD pipeline, or a Dockerfile, where you want the process to fail if the check does not pass:
# Dockerfile FROM php:8.0-fpm RUN curl -Lsf https://raw.githubusercontent.com/craftcms/server-check/HEAD/check.sh | bash
The official Craft Docker Images run this check when building to be certain all of Craft's requirements are met in any built image.
craftcms/server-check 适用场景与选型建议
craftcms/server-check 是一款 基于 Hack 开发的 Composer 扩展包,目前已累计 4.39M 次下载、GitHub Stars 达 68, 最近一次更新时间为 2016 年 12 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「yii2」 「requirements」 「craftcms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 craftcms/server-check 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 craftcms/server-check 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 craftcms/server-check 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Simple requirements checking class
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Define, configure and protect your application environment and its requirements.
统计信息
- 总下载量: 4.39M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 68
- 点击次数: 14
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-31