PHPackages                             wildphp/irc-textformatter - 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. wildphp/irc-textformatter

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

wildphp/irc-textformatter
=========================

IRC Text Formatter for WildPHP

v0.1(7y ago)022MITPHPPHP &gt;=7.0.0CI passing

Since Jan 23Pushed 3y ago2 watchersCompare

[ Source](https://github.com/WildPHP/irc-textformatter)[ Packagist](https://packagist.org/packages/wildphp/irc-textformatter)[ RSS](/packages/wildphp-irc-textformatter/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

irc-textformatter
=================

[](#irc-textformatter)

[![Build Status](https://camo.githubusercontent.com/53402a6754a8f64a66cd55334c3b73fd30fd1e1a390c0fc529a808cc6bb7fd65/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57696c645048502f6972632d74657874666f726d61747465722f6261646765732f6275696c642e706e67)](https://scrutinizer-ci.com/g/WildPHP/irc-textformatter/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/96b325c3cf65d01237b1720521e7082c93833e157e37a922a901865ff34b824b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57696c645048502f6972632d74657874666f726d61747465722f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/WildPHP/irc-textformatter/?branch=master)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/9cd82c6588ea89b50974b93137009c645ce9643b809e3485041faa89799e7428/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57696c645048502f6972632d74657874666f726d61747465722f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/WildPHP/irc-textformatter/code-structure/master/code-coverage)[![Latest Stable Version](https://camo.githubusercontent.com/a360e8da0708d75b9fa3c09bb38a4674f33ea9914aa032ed8aed1b041c1700d3/68747470733a2f2f706f7365722e707567782e6f72672f77696c647068702f6972632d74657874666f726d61747465722f762f737461626c65)](https://packagist.org/packages/wildphp/irc-textformatter)[![Latest Unstable Version](https://camo.githubusercontent.com/590cb36340b51e8b91bb6d632d86f6450d7208b32d225ea09cf74c8dfab6b88d/68747470733a2f2f706f7365722e707567782e6f72672f77696c647068702f6972632d74657874666f726d61747465722f762f756e737461626c65)](https://packagist.org/packages/wildphp/irc-textformatter)[![Total Downloads](https://camo.githubusercontent.com/d3888461a0ff0a0b4aa4d8a2eea130fce04c4798f40044dcc159505a6f6146ea/68747470733a2f2f706f7365722e707567782e6f72672f77696c647068702f6972632d74657874666f726d61747465722f646f776e6c6f616473)](https://packagist.org/packages/wildphp/irc-textformatter)

Tiny library to format text according to the IRC standard.

Installation
------------

[](#installation)

To install this package, you need [Composer](https://getcomposer.org/).

```
$ composer require wildphp/irc-textformatter ^0.1

```

Usage
-----

[](#usage)

The formatter works as a utility class. It exposes the following methods:

- `bold(string $text)`
- `italic(string $text)`
- `underline(string $text)`
- `color(string $text, string $foreground, string $background = '')` (see below what colors are supported)

Along with the above basic methods, some more advanced methods are provided:

- `findColorByString(string $color)` - returns a numeric string with the color code based on human readable input ('white' will return '00', see the color table below)
- `calculateStringColor(string $stringToColor)` - returns a numeric string with color code based on string contents
- `consistentStringColor(string $stringToColor)` - same as above, but pre-applies the color to the string

It also allows you to strip various formatting elements from text:

- `stripBold(string $text)`
- `stripItalic(string $text)`
- `stripUnderline(string $text)`
- `stripColor(string $text)`

Color table
-----------

[](#color-table)

Human-readableIRC color code`white``00``black``01``blue``02``green``03``red``04``brown``05``purple``06``orange``07``yellow``08``lime``09``teal``10``aqua``11``royal``12``fuchsia``13``grey``14``silver``15`Contributors
------------

[](#contributors)

You can see the full list of contributors [in the GitHub repository](https://github.com/WildPHP/irc-messages/graphs/contributors).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2669d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64cbefa2b33116fa8d909bbeb6add16b949cd91864b693cd9c4797430ee7eb6d?d=identicon)[Yoshi2889](/maintainers/Yoshi2889)

---

Top Contributors

[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (23 commits)")[![NanoSector](https://avatars.githubusercontent.com/u/1280380?v=4)](https://github.com/NanoSector "NanoSector (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wildphp-irc-textformatter/health.svg)

```
[![Health](https://phpackages.com/badges/wildphp-irc-textformatter/health.svg)](https://phpackages.com/packages/wildphp-irc-textformatter)
```

###  Alternatives

[eyecatchup/webmaster-tools-data

An easy way to automate downloading of data tables from Google Webmaster Tools

1052.1k](/packages/eyecatchup-webmaster-tools-data)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
