PHPackages                             hishamhuneidie/colored-terminal - 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. hishamhuneidie/colored-terminal

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

hishamhuneidie/colored-terminal
===============================

Script to colorize text in terminal

1.0.1(1y ago)085MITPHPPHP &gt;=8.2

Since Jan 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/HishamHuneidie/colored-terminal)[ Packagist](https://packagist.org/packages/hishamhuneidie/colored-terminal)[ RSS](/packages/hishamhuneidie-colored-terminal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

🎨 Colored Terminal Text
=======================

[](#-colored-terminal-text)

This project allows you to easily print colored text and backgrounds in the terminal using PHP.

✨ Features
----------

[](#-features)

- 🎨 Customize text color.
- 🖌️ Customize background color.
- 🎭 Combine text and background colors for styled terminal output.

🛠 Requirements
--------------

[](#-requirements)

- 🐘 PHP 8.0 or later.

📥 Installation
--------------

[](#-installation)

```
composer require --dev hishamhuneidie/colored-terminal
```

🚀 Usage
-------

[](#-usage)

Here's how to use the library to print styled text in the terminal:

### Example

[](#example)

```
#!/usr/bin/env php
