pierrerolland / hipchat-bundle
Integration of Hipchat in Symfony applications
Installs: 42
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4.0
- pierrerolland/guzzle-config-operations-bundle: ^1.0
- symfony/framework-bundle: >=2.6
This package is auto-updated.
Last update: 2024-12-18 01:59:09 UTC
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 !