ANSI escape codes for PHP, enabling styled and colored terminal output. This library provides an easy way to add color and style to your command-line applications.
Current Version: 3.1
Last Updated: Date not available
PHP Requirement: >=5.4.0
Dependencies: None
Package Description
ANSI-PHP is a PHP library that simplifies adding color and style to terminal output. It supports a wide range of text formatting options, making command-line interfaces more visually appealing and user-friendly. With ANSI escape codes, you can customize text appearance, background colors, and more with ease.
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/bramus/ansi-php/3.1/loader.php';
use Bramus\Ansi\Ansi;
$obj = new Ansi();
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.