PHPackages                             neilime/ansi-escapes-to-html - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. neilime/ansi-escapes-to-html

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

neilime/ansi-escapes-to-html
============================

Convert ANSI escapes (terminal formatting/color codes) to HTML

v5.0.0(4mo ago)82.5k↓37.5%1MITPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Dec 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/neilime/ansi-escapes-to-html)[ Packagist](https://packagist.org/packages/neilime/ansi-escapes-to-html)[ Docs](http://neilime.github.io/ansi-escapes-to-html/)[ GitHub Sponsors](https://github.com/neilime)[ RSS](/packages/neilime-ansi-escapes-to-html/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (11)Used By (1)

 [![](https://repository-images.githubusercontent.com/76674702/0f4fcf80-ece7-11e9-84f1-32287c3d8e95)](https://neilime.github.io/ansi-escapes-to-html)

ANSI escapes to Html
====================

[](#ansi-escapes-to-html)

[![Continuous integration](https://github.com/neilime/ansi-escapes-to-html/workflows/Continuous%20integration/badge.svg)](https://github.com/neilime/ansi-escapes-to-html/actions?query=workflow%3A%22Continuous+integration%22)[![codecov](https://camo.githubusercontent.com/6562a9f2a66841c57d63d2dad4c9fbb0bcecb38cee34dc4b09bf639a33c1639b/68747470733a2f2f636f6465636f762e696f2f67682f6e65696c696d652f616e73692d657363617065732d746f2d68746d6c2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d654d7577674e7562375a)](https://codecov.io/gh/neilime/ansi-escapes-to-html)[![Latest Stable Version](https://camo.githubusercontent.com/71af0b304f6a50efa2c20c169c53141eeff0f54f8d4439e6de53ec7230beb1dc/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f616e73692d657363617065732d746f2d68746d6c2f762f737461626c65)](https://packagist.org/packages/neilime/ansi-escapes-to-html)[![Total Downloads](https://camo.githubusercontent.com/b44413a4857295114d7afff4a613cc77e9cd0b55c7d6493bf25db5e69edf1f74/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f616e73692d657363617065732d746f2d68746d6c2f646f776e6c6f616473)](https://packagist.org/packages/neilime/ansi-escapes-to-html)[![License](https://camo.githubusercontent.com/2351a1dcefca120c49f55b752464c03af9483f4f066a11c23b6f64baadebee55/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f616e73692d657363617065732d746f2d68746d6c2f6c6963656e7365)](https://packagist.org/packages/neilime/ansi-escapes-to-html)[![Sponsor](https://camo.githubusercontent.com/f55c88fe25eb9b7cab4ae4a50e9720925d200d5141d70e4224ecd6bd179de3e3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545322539442541342d53706f6e736f722d666636396234)](https://github.com/sponsors/neilime)

📢 **ANSI escapes to Html** is a php script that convert ANSI escapes (terminal formatting/color codes) to HTML markup:

```
\e[40;38;5;82m Hello \e[30;48;5;82m World
```

Became

```

  Hello

  World

```

Helping Project
---------------

[](#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](https://github.com/sponsors/neilime) him. Thank you !

Contributing
------------

[](#contributing)

👍 If you wish to contribute to this project, please read the [CONTRIBUTING.md](CONTRIBUTING.md) file. Note: If you want to contribute don't hesitate, I'll review any PR.

Documentation
-------------

[](#documentation)

### [Installation](./docs/installation.md)

[](#installation)

### [Usage](./docs/usage.md)

[](#usage)

### [Development](./docs/development.md)

[](#development)

### [Code Coverage](https://codecov.io/gh/neilime/ansi-escapes-to-html)

[](#code-coverage)

### [PHP Doc](https://neilime.github.io/ansi-escapes-to-html/phpdoc)

[](#php-doc)

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance83

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 61.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~470 days

Recently: every ~303 days

Total

8

Last Release

141d ago

Major Versions

1.0.1 → v2.0.02019-10-09

v2.0.1 → v3.0.02022-11-22

v3.0.0 → v4.0.02024-06-29

v4.1.0 → v5.0.02025-12-22

PHP version history (6 changes)1.0.1PHP &gt;=5.3.3

v2.0.0PHP ^7.2

v3.0.0PHP ^7.4 || ^8

v4.0.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

v4.1.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

v5.0.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0cd480ea3050a483f3e08c365a6d847402b4edb110d706111d13ef33b845ef9f?d=identicon)[neilime](/maintainers/neilime)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (128 commits)")[![neilime](https://avatars.githubusercontent.com/u/314088?v=4)](https://github.com/neilime "neilime (75 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

converthtmlhighlightansiescapes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/neilime-ansi-escapes-to-html/health.svg)

```
[![Health](https://phpackages.com/badges/neilime-ansi-escapes-to-html/health.svg)](https://phpackages.com/packages/neilime-ansi-escapes-to-html)
```

###  Alternatives

[scrivo/highlight.php

Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js

71040.3M82](/packages/scrivo-highlightphp)[spatie/laravel-html

A fluent html builder

8376.4M72](/packages/spatie-laravel-html)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21520.9M15](/packages/caxy-php-htmldiff)[yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

2899.6M48](/packages/yajra-laravel-datatables-html)[tinymce/tinymce

Web based JavaScript HTML WYSIWYG editor control.

1697.5M106](/packages/tinymce-tinymce)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
