Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

phergie/phergie-irc-connection

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

This project is abandoned

This repo is being kept for posterity and will be archived in a readonly state. If you're interested it can be forked under a new Composer namespace/GitHub organization.

phergie/phergie-irc-connection

A PHP data structure for containing client connection information per the IRC protocol as described in RFC 1459.

Primarily used by IRC client implementations of the Phergie project.

Build Status

Install

The recommended method of installation is through composer.

{
    "require": {
        "phergie/phergie-irc-connection": "~2"
    }
}

Design goals

  • Minimal dependencies: PHP 5.4.2+
  • Simple easy-to-understand API

Usage

$connection = new \Phergie\Irc\Connection();

$connection
    ->setServerHostname('hostname')
    ->setServerPort(6668)
    ->setPassword('password')
    ->setNickname('nickname')
    ->setUsername('username')
    ->setHostname('hostname')
    ->setServername('servername')
    ->setRealname('realname')
    ->setOption('option', 'value');

echo $connection->getServerHostname();
echo $connection->getServerPort();
echo $connection->getPassword();
echo $connection->getNickname();
echo $connection->getUsername();
echo $connection->getHostname();
echo $connection->getServername();
echo $connection->getRealname();
echo $connection->getOption('option');

Tests

To run the unit test suite:

curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

License

Released under the BSD License. See LICENSE.

Community

Check out #phergie on irc.freenode.net.

About

PHP data structure for IRC client connection information

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages