nixilla/hipchat-bundle
Composer 安装命令:
composer require nixilla/hipchat-bundle
包简介
Provides simple hipchat notification service - requires Buzz
关键字:
README 文档
README
Very basic and simple Hipchat integration. Currently it only provides notification to single room. But if you would like to extend it please feel free to send pull request.
Installation
Install with composer:
composer require nixilla/hipchat-bundle
Add budle to AppKernel:
<?php // app/AppKernel.php class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // other bundles here, new Nixilla\HipchatBundle\NixillaHipchatBundle() ]; return $bundles; } }
Configure parameters.yml:
hipchat.token: tbc hipchat.room: tbc hipchat.domain: tbc
Usage
Inject hipchat service in to your service:
your.service: class: \YourClass arguments: [ "@hipchat.notifier" ]
Use in your class:
<?php class YourClass { private $hipchat; // inject it via constructor public function yourMethod() { $this->hipchat->notify($colour = 'red', $message = 'Hello', $format = 'text', $notify = false); } }
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-13