jfcherng/php-color-output
Lightweight PHP utility to add ANSI colors and styles to CLI output. Provides named foreground/background styles, special effects (bold, underline, blink, reverse), aliases, and a simple CliColor::color() helper to format strings for terminals.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| barthy-koeln/bash-echolorized | 0.84 | Minimal bash helper for clean, colorized CLI output in CI/CD scripts and git hooks. Source it via Composer or npm/yarn and use e_info/e_success/e_warning/e_error plus colored_output and tagged_output for readable, tagged status lines. | 2 | 2 | 0 | 0 | 0 | 0.6 | — | MIT | 4 years ago | |
| kevinlebrun/colors.php | 0.84 | A lightweight PHP library for working with colors: parse and validate HEX/RGB/HSL, convert between formats, generate palettes, adjust brightness/saturation, and compute contrast/accessible text colors. Handy utilities for theming and UI design in PHP apps. | 342 | 359 | 37 | 86K | 3 | 3.6 | 33.8 | MIT | — | |
| baks-dev/reference-color | 0.83 | Библиотека справочника цветов для проектов BaksDev: подключение через Composer, сервис ReferenceChoiceColor для вывода цветов в выпадающих списках (tag baks.reference.choice). Требует PHP 8.4+. Лицензия MIT. | 0 | 0 | 0 | 44 | 0 | 20.7 | — | MIT | 2 weeks ago | |
| jakub-onderka/php-console-color | 0.83 | Abandoned PHP library for styling console output with ANSI colors. Formerly used to print colored text in terminals (see example.php). Consider using the maintained alternative: https://github.com/php-parallel-lint/PHP-Console-Color | 6,122 | 5,930 | 24 | 365K | 2 | 26.7 | 24.6 | BSD-2-Clause | 7 years ago | |
| php-parallel-lint/php-console-highlighter | 0.82 | Highlight PHP source code in the terminal with readable, colorized syntax. php-console-highlighter works with ConsoleColor and can highlight whole files or snippets—ideal for CLI tools, linters, and test output to quickly spot errors and context. | 88 | 88 | 6 | 651K | 0 | 1.4 | 53.4 | MIT | 4 years ago | |
| jakub-onderka/php-console-highlighter | 0.82 | Abandoned package for syntax-highlighting PHP code in the terminal using ANSI colors. Provides a Highlighter that outputs highlighted whole-file or snippet content for CLI display. Suggested alternative: php-parallel-lint/PHP-Console-Highlighter. | 6,168 | 5,952 | 17 | 324K | 0 | 27.3 | 23.9 | MIT | 7 years ago | |
| codedungeon/php-cli-colors | 0.82 | Add ANSI color codes to PHP CLI output with simple constants. Use Color::GREEN, Color::RESET, etc. to style messages in console apps. Lightweight, zero-config, and easy to drop into any Composer-based project. | 102 | 105 | 3 | 165K | 0 | 0.6 | 44.3 | MIT | — | |
| php-parallel-lint/php-console-color | 0.82 | Adds easy, cross-platform console text styling for PHP: colors, background colors, and formatting like bold/underline. Lightweight, dependency-free, and commonly used in CLI tools to improve readability of output and error messages. | 85 | 88 | 7 | 676K | 0 | 1.7 | 53.8 | BSD-2-Clause | 4 years ago | |
| bramus/ansi-php | 0.82 | bramus/ansi-php is a lightweight PHP library for working with ANSI escape codes in the terminal. Easily colorize and style CLI output, move the cursor, clear sections of the screen, and build richer command-line interfaces with minimal setup. | 95 | — | 10 | — | 3 | 1.6 | 0.8 | MIT | — | |
| 21torr/cli | 0.79 | — | 0 | 0 | 2 | 723 | 0 | 18.3 | 44.6 | MIT | 3 months ago | |
| jfcherng/php-diff | 0.75 | PHP library to generate diffs between two strings with multiple renderers: unified/context/text, JSON, and rich HTML (inline, side-by-side, combined). Includes helper CSS (or your own) and customizable differ/renderer options. Requires PHP 8.3+ and ext-iconv. | 474 | 475 | 51 | 208K | 5 | 31.9 | 43.5 | BSD-3-Clause | 1 month ago |
How can I help you explore Laravel packages today?