phergie/phergie-slack-connection
Composer 安装命令:
composer require phergie/phergie-slack-connection
包简介
Data structure for containing information about a Slack client connection, analogous to Phergie\Irc\Connection
README 文档
README
A PHP data structure for containing client connection information per the Slack Real Time Messaging API.
Primarily used by Slack client implementations of the Phergie project.
Install
The recommended method of installation is through composer.
{
"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:
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.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2015-02-16