2017 © Pedro Peláez
 

library phergie-slack-connection

Data structure for containing information about a Slack client connection, analogous to Phergie\Irc\Connection

image

phergie/phergie-slack-connection

Data structure for containing information about a Slack client connection, analogous to Phergie\Irc\Connection

  • Thursday, February 12, 2015
  • by alexmace
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

phergie/phergie-slack-connection

A PHP data structure for containing client connection information per the Slack Real Time Messaging API., (*1)

Primarily used by Slack client implementations of the Phergie project., (*2)

Build Status, (*3)

Install

The recommended method of installation is through composer., (*4)

{
    "minimum-stability": "dev",
    "require": {
        "phergie/phergie-slack-connection": "1.1.0"
    }
}

Design goals

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

Usage

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

$connection->setToken('xoxb-##########');
$connection->setUsername('username');
$connection->setFirstName('hostname');
$connection->setLastName('servername');
$connection->setOption('option', 'value');

echo $connection->getToken();
echo $connection->getUsername();
echo $connection->getFirstName();
echo $connection->getLastName();
echo $connection->getOption('option');

Tests

To run the unit test suite:, (*5)

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

License

Released under the BSD License. See LICENSE., (*6)

Community

Check out #phergie on irc.freenode.net., (*7)

The Versions

12/02 2015

dev-master

9999999-dev

Data structure for containing information about a Slack client connection, analogous to Phergie\Irc\Connection

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.3

 

The Development Requires

server client slack connection