nixilla / hipchat-bundle
Provides simple hipchat notification service - requires Buzz
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- sensio/buzz-bundle: ^1.1
- symfony/framework-bundle: ~2.3|~3.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-19 00:22:03 UTC
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); } }