2017 © Pedro Peláez
 

symfony-bundle hipchat-bundle

Integration of Hipchat in Symfony applications

image

pierrerolland/hipchat-bundle

Integration of Hipchat in Symfony applications

  • Thursday, June 30, 2016
  • by pierrerolland
  • Repository
  • 0 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

hipchat-bundle

Integration of Hipchat in Symfony applications. This bundle allow you to send notifications to your Hipchat rooms, defined in the configuration., (*1)

Installation

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;
    }

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., (*4)

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 !, (*5)

The Versions

30/06 2016

dev-master

9999999-dev

Integration of Hipchat in Symfony applications

  Sources   Download

MIT

The Requires

 

by Pierre Rolland

22/06 2016

v1.0.0

1.0.0.0

Integration of Hipchat in Symfony applications

  Sources   Download

MIT

The Requires

 

by Pierre Rolland