承接 phergie/phergie-slack-connection 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

Build Status

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2015-02-16