PHPackages                             skycube/lightircparser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. skycube/lightircparser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

skycube/lightircparser
======================

PHP parser for messages conforming to the IRC protocol including support for IRCv3.2 Message Tags

1.0.4(1mo ago)243GPL-3.0PHPPHP &gt;=5.3.3CI passing

Since Mar 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/zabouth/lightircparser)[ Packagist](https://packagist.org/packages/skycube/lightircparser)[ RSS](/packages/skycube-lightircparser/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)DependenciesVersions (7)Used By (0)

Synopsis
--------

[](#synopsis)

PHP parser for messages conforming to the IRC protocol including support for IRCv3.2 Message Tags

Examples
--------

[](#examples)

##### Exmaple 1:

[](#exmaple-1)

Message without Message Tags.

```
$msg = new Lightircparser\IRCMessage(":test!test@test.my.irc.server JOIN #test");
$msg->phrase();
echo $msg->to_json();
```

Output:

```
{
    "ts": 1488459541399,
    "has_message_tags": false,
    "has_prefix": true,
    "message_tags": [],
    "prefix": {
        "nick": "test",
        "user": "test",
        "host": "test.my.irc.server"
    },
    "command": "JOIN",
    "params": [
        "#test"
    ],
    "raw": ":test!test@test.my.irc.server JOIN #test"
}
```

##### Exmaple 2:

[](#exmaple-2)

Message with IRCv3.2 Message Tags.

```
$msg = new Lightircparser\IRCMessage("@display-name=TestUser;id=2362364236234634634;room-id=31462363463;sent-ts=1488375811149;admin=0;testp= :testuser!testuser@testuser.my.irc.server PRIVMSG #test :Hello! World");
$msg->phrase();
echo $msg->to_json();
```

Output:

```
{
    "ts": 1488460013762,
    "has_message_tags": true,
    "has_prefix": true,
    "message_tags": {
        "display-name": "TestUser",
        "id": "2362364236234634634",
        "room-id": "31462363463",
        "sent-ts": "1488375811149",
        "admin": "0",
        "testp": null
    },
    "prefix": {
        "nick": "testuser",
        "user": "testuser",
        "host": "testuser.my.irc.server"
    },
    "command": "PRIVMSG",
    "params": [
        "#test",
        "Hello! World"
    ],
    "raw": "@display-name=TestUser;id=2362364236234634634;room-id=31462363463;sent-ts=1488375811149;admin=0;testp= :testuser!testuser@testuser.my.irc.server PRIVMSG #test :Hello! World"
}
```

Motivation
----------

[](#motivation)

I could not find a parser for PHP with message tags support so I made one.

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

[](#installation)

```
composer require skycube/lightircparser

```

License
-------

[](#license)

GPL-3.0

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~1103 days

Total

4

Last Release

51d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa788a26fbd39ce2ae22b9deb3fd2631cfb50a91cf2fbd1a645b7ad8e634cc38?d=identicon)[zabouth](/maintainers/zabouth)

---

Top Contributors

[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (5 commits)")[![skycubeuk](https://avatars.githubusercontent.com/u/127714?v=4)](https://github.com/skycubeuk "skycubeuk (2 commits)")

### Embed Badge

![Health badge](/badges/skycube-lightircparser/health.svg)

```
[![Health](https://phpackages.com/badges/skycube-lightircparser/health.svg)](https://phpackages.com/packages/skycube-lightircparser)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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