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

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

wildphp/irc-messages
====================

IRC messages implementation for WildPHP

v0.3.1(5y ago)01.7k[1 PRs](https://github.com/WildPHP/irc-messages/pulls)MITPHPPHP &gt;=7.2.0

Since Nov 7Pushed 2y ago2 watchersCompare

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

READMEChangelog (6)Dependencies (2)Versions (11)Used By (0)

irc-messages
============

[](#irc-messages)

---

[![Build Status](https://camo.githubusercontent.com/8407a8db4cb3996629ad54383e422adb3235f802b76cb6f14cadde6232666b6a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57696c645048502f6972632d6d657373616765732f6261646765732f6275696c642e706e67)](https://scrutinizer-ci.com/g/WildPHP/irc-messages/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5a6d9c3ede8d7b556f2714e2f4fe34f943456508e274d917d1a7cd61a5c69ed9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57696c645048502f6972632d6d657373616765732f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/WildPHP/irc-messages/?branch=master)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/4512cf964de611b5a8022d05d1470dfd261093e906e815cd5c6a124c0dda0096/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57696c645048502f6972632d6d657373616765732f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/WildPHP/irc-messages/code-structure/master/code-coverage)[![Latest Stable Version](https://camo.githubusercontent.com/09e235e88f00e026e8909c241e27fcfc04a4e96f96f5e4cea21f70def40c07e9/68747470733a2f2f706f7365722e707567782e6f72672f77696c647068702f6972632d6d657373616765732f762f737461626c65)](https://packagist.org/packages/wildphp/irc-messages)[![Latest Unstable Version](https://camo.githubusercontent.com/624fcaeb292333d9cec566c39ca671b2e71cd7d11530b6862f22bec1a7fe7d6a/68747470733a2f2f706f7365722e707567782e6f72672f77696c647068702f6972632d6d657373616765732f762f756e737461626c65)](https://packagist.org/packages/wildphp/irc-messages)[![Total Downloads](https://camo.githubusercontent.com/2e240b9a34cd5425aea1e7f8a9d24b1fbe72839f4df5f665d92ea2beb073f8df/68747470733a2f2f706f7365722e707567782e6f72672f77696c647068702f6972632d6d657373616765732f646f776e6c6f616473)](https://packagist.org/packages/wildphp/irc-messages)

Implementation of various IRC messages designed for WildPHP.

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

[](#installation)

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

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

```

Usage
-----

[](#usage)

These messages can be used standalone without usage of any other utilities. For example:

```
// Privmsg(string $channel, string $message)
$privmsg = new Privmsg('#channel', 'This is a message');

$rawMessage = (string) $privmsg; //: "PRIVMSG #channel :This is a message" + "\r\n"
```

`IncomingMessage` instances may be created from parsed messages, which is useful if you just want a generic representation of the message. These can be casted into specialized objects if the message type implements `IncomingMessageInterface`.

```
// IncomingMessage(string $prefix, string $verb, array $args)
$incoming = new IncomingMessage('nickname!username@hostname', 'PRIVMSG', ['This is a message']);

$privmsg = Privmsg::fromIncomingMessage($incoming);
```

A utility class is provided which tries to find the most appropriate class to specialize messages to.

```
$incoming = new IncomingMessage('nickname!username@hostname', 'PRIVMSG', ['This is a message']);

$privmsg = MessageCaster::castMessage($incoming);

// $privmsg is now an object of the Privmsg class.
```

Numeric messages are stored in the RPL directory under their official name, because PHP does not support numeric class names. You can use the `RplTranslateEnum` class to translate numeric verbs into the corresponding class names. Make sure to pass the numerics as **strings** to account for leading zeroes. A numeric like '3' will not be accepted.

```
$topicClass = RplTranslateEnum::translateNumeric('332');

// $topicClass is now '\WildPHP\Messages\RPL\Topic'
```

Implemented messages
--------------------

[](#implemented-messages)

Messages can be implemented as incoming or outgoing messages.

An incoming message may be converted from an `IncomingMessage` class.

An outgoing message may be converted to a string in order to send it to an IRC server.

NameAs incoming?As outgoing?Extra's?001/RPL\_WELCOMEx005/RPL\_ISUPPORTx332/RPL\_TOPICx353/RPL\_NAMREPLYx354/RPL\_WHOSPCRPLx366/RPL\_ENDOFNAMExACCOUNTxAUTHENTICATExxAWAYxxCAPxxERRORxJOINxxextended-join support for incoming messagesKICKxxMODExxNAMESxNICKxxNOTICExxPARTxxPASSxPINGxxPONGxxPRIVMSGxxQUITxxREMOVExTOPICxxUSERxxVERSIONxWHOxxWHOISxWHOWASxContributors
------------

[](#contributors)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.2% 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

Every ~156 days

Total

6

Last Release

1969d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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