PHP Package: sensiolabs/ansi-to-html

Convert ANSI escape codes to HTML for better readability and rendering on websites and applications. An essential tool for displaying colored and formatted terminal output on web pages or in documentation.

Current Version: 2.0.0
Last Updated: Date not available
PHP Requirement: >=8.0
Dependencies: None

Package Description

The sensiolabs/ansi-to-html PHP library is designed to transform ANSI escape codes into HTML markup, enabling developers to render terminal content with color and formatting intact. With support for a wide range of ANSI codes, this tool enhances code readability and presentation, making it ideal for displaying command-line output on websites, blogs, and documentation platforms.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.0.0

Download Download v2.0.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com

require_once 'libs/sensiolabs/ansi-to-html/2.0.0/loader.php';
use SensioLabs\AnsiToHtml\AnsiToHtmlConverter;

$obj = new AnsiToHtmlConverter();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.