pierrerolland/hipchat-bundle
Composer 安装命令:
composer require pierrerolland/hipchat-bundle
包简介
Integration of Hipchat in Symfony applications
README 文档
README
Integration of Hipchat in Symfony applications. This bundle allow you to send notifications to your Hipchat rooms, defined in the configuration.
Installation
composer require pierrerolland/hipchat-bundle
And in your app/AppKernel.php
class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new JMS\SerializerBundle\JMSSerializerBundle(), new Guzzle\ConfigOperationsBundle\GuzzleConfigOperationsBundle(), new Atlassian\HipchatBundle\AtlassianHipchatBundle(), ]; return $bundles; }
Usage
1. Get your room's token
In browser's Hipchat version, go to "Integrations", then "Build your own". Select a room and a name for your integration. You'll now have a room id and an auth token.
2. Configure the room in Symfony
# config.yml atlassian_hipchat: group: "plop" # Your group's name (plop.hipchat.com) rooms: foo: id: 42 # The room "foo"'s id token: blahblahblah # The room "foo"'s auth token ...
3. Send your notifications
$this ->get('atlassian_hipchat.manager.hipchat') ->createNotification('foo', 'Will Grigg\'s on fire !', 'purple');
That's it !
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-22