neilime / ansi-to-html-twig-extension
Twig extension to convert ANSI escapes (terminal formatting/color codes) to HTML
Package info
github.com/neilime/ansi-to-html-twig-extension
pkg:composer/neilime/ansi-to-html-twig-extension
Fund package maintenance!
Requires
- php: ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
- neilime/ansi-escapes-to-html: ^5.0
- twig/twig: ^3.22
Requires (Dev)
- pcov/clobber: ^2.0
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2026-03-01 14:02:26 UTC
README
Ansi-To-Html Twig Extension
📢 Ansi-To-Html Twig Extension is a Twig extension to convert ANSI escapes (terminal formatting/color codes) to HTML:
It is based on ANSI escapes to Html.
{% ansitohtml %}
Default \e[34mBlue
{% endansitohtml %}
Helping Project
❤️ If this project helps you reduce time to develop and/or you want to help the maintainer of this project. You can sponsor him. Thank you !
Contributing
👍 If you wish to contribute to this project, please read the CONTRIBUTING.md file. Note: If you want to contribute don't hesitate, I'll review any PR.