Registry / cli / bramus-ansi-php

bramus-ansi-php

JSON →
library3.0.4phppackagistunverified

ANSI Control Functions and ANSI Control Sequences (Colors, Erasing, etc.) for PHP CLI Apps.

composer require bramus/ansi-php
INSTALL
IMPORT
SIG · BRAMUS-ANSI-PHP
B
bramus-ansi-php
cliphpv3.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ansi
use Bramus\Ansi\Ansi;

Output colored text in CLI

use Bramus\Ansi\Ansi; $ansi = new Ansi(); echo $ansi->color('red')->text('Hello World')->reset();
Debug
Known issues
gotchaOnly works in ANSI-compatible terminals
fix
Use in CLI environments that support ANSI escape codes
affects: >=3.0.0
Upgrade
Version history
3.0.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
Resources
bramus-ansi-php — pip install bramus-ansi-php · libregistry