Render the `core:version` banner natively and deprecate `povils/figlet`
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 74/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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/
- Linguagem predominante
- PHP
- Estrelas
- 43
- Forks
- 22
- Merge médio
- 54min
- PRs com merge (30d)
- 57
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de quantum-php/framework
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
quantum-php/framework#692 ·
Mantenedores costumam responder em até 1 dia
-
routing testing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
quantum-php/framework#547 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
quantum-php/framework#694 ·
Mantenedores costumam responder em até 1 dia
-
Raise PHPStan to level 9Abertarefactoring tech debt
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
quantum-php/framework#693 ·
Mantenedores costumam responder em até 1 dia
-
install:debugbar reads the package folder from the working directory and uses the default storage adapterTalvez já em andamento @armanist assumiu hoje. Abertabug console debugbar good first issue
quantum-php/framework#691 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de quantum-php/framework
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
dependencies enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
novalo-dev/Prestashop-MCP-Server#329 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
Mantenedores costumam responder em até 1 dia
-
bug origin:interactive status:available
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia