Render the `core:version` banner natively and deprecate `povils/figlet`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with src/Console/Commands/VersionCommand.php and trace how it currently calls povils/figlet. Check the starter project's public/assets/shared/fonts/figlet/ files and the existing changelog format. Done means the core renderer handles all four shipped fonts, php qt core:version matches the previous slant banner for QUANTUM PHP 3.2.0, and the changelog records the deprecation.
由索引模型根据 Issue 内容生成。
描述
Summary
Add a small FIGlet renderer to the core and use it for the banner of php qt core:version, instead of povils/figlet. Keep povils/figlet in composer.json, deprecated, and remove it in a later release.
Why
povils/figlet has had no release since 2016. Its last version, 1.0.0, requires symfony/console ~3.0, so it cannot be installed next to the Symfony Console the core uses, and the core is stuck on 0.1.0 (found while working on #687). The only maintained-looking alternative, laminas/laminas-text, is abandoned. The core uses the package for one thing: rendering QUANTUM PHP <version> with the slant font, which the starter project already ships in public/assets/shared/fonts/figlet/.
Proposed change
- A renderer class in the Console package that reads a FIGlet
.flffont file and renders a string, with the three methodsVersionCommanduses:setFontDir(),setFont()andrender(). VersionCommanduses it.povils/figletstays incomposer.jsonand gets a Deprecated changelog entry: the core no longer uses it, and it will be removed in a later release. Applications that callPovils\Figlet\Figletthemselves should require the package in their owncomposer.json.
Acceptance criteria
php qt core:versionprints the same banner as before: a test compares the native output forQUANTUM PHP 3.2.0with theslantfont against the output ofpovils/figlet0.1.0.- the renderer handles the four fonts the starter project ships (
big,slant,small,standard) - the changelog records the deprecation
Notes
src/Console/Commands/VersionCommand.php- the font files are in quantum-php/project,
public/assets/shared/fonts/figlet/
- 主要语言
- PHP
- 星标
- 43
- 派生
- 22
- 平均合并
- 54 分钟
- 30 天内合并 PR
- 57
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quantum-php/framework 的其他 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 78/100
quantum-php/framework#692 ·
维护者通常 1 天内回复
-
routing testing
难度 2/5 1-3 小时 新手友好度 76/100
quantum-php/framework#547 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 72/100
quantum-php/framework#694 ·
维护者通常 1 天内回复
-
refactoring tech debt
难度 5/5 一周以上 新手友好度 20/100
quantum-php/framework#693 ·
维护者通常 1 天内回复
-
install:debugbar reads the package folder from the working directory and uses the default storage adapter可能已有人在做 @armanist 今天认领。 未关闭bug console debugbar good first issue
quantum-php/framework#691 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 quantum-php/framework 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
dependencies enhancement
难度 2/5 1-3 小时 新手友好度 68/100
novalo-dev/Prestashop-MCP-Server#329 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
bug origin:interactive status:available
难度 2/5 1-3 小时 新手友好度 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复