dev-master
9999999-devIntegration of Hipchat in Symfony applications
MIT
The Requires
by Pierre Rolland
v1.0.0
1.0.0.0Integration of Hipchat in Symfony applications
MIT
The Requires
by Pierre Rolland
Integration of Hipchat in Symfony applications
Integration of Hipchat in Symfony applications. This bundle allow you to send notifications to your Hipchat rooms, defined in the configuration., (*1)
composer require pierrerolland/hipchat-bundle
, (*2)
And in your app/AppKernel.php, (*3)
class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new JMS\SerializerBundle\JMSSerializerBundle(), new Guzzle\ConfigOperationsBundle\GuzzleConfigOperationsBundle(), new Atlassian\HipchatBundle\AtlassianHipchatBundle(), ]; return $bundles; }
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., (*4)
# 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 ...
$this ->get('atlassian_hipchat.manager.hipchat') ->createNotification('foo', 'Will Grigg\'s on fire !', 'purple');
That's it !, (*5)
Integration of Hipchat in Symfony applications
MIT
Integration of Hipchat in Symfony applications
MIT