PHP code example of skycube / lightircparser

1. Go to this page and download the library: Download skycube/lightircparser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

skycube / lightircparser example snippets


$msg = new Lightircparser\IRCMessage(":[email protected] JOIN #test");
$msg->phrase();
echo $msg->to_json();

$msg = new Lightircparser\IRCMessage("@display-name=TestUser;id=2362364236234634634;room-id=31462363463;sent-ts=1488375811149;admin=0;testp= :[email protected] PRIVMSG #test :Hello! World");
$msg->phrase();
echo $msg->to_json();