Download the PHP package hannesvdvreken/hipchat without Composer
On this page you can find all versions of the php package hannesvdvreken/hipchat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hannesvdvreken/hipchat
More information about hannesvdvreken/hipchat
Files in hannesvdvreken/hipchat
Package hipchat
Short Description A notifier class for Hipchat notifications
License MIT
Informations about the package hipchat
Hipchat notifier
Usage
Getting started with a Hello World example.
If you would like to send notification to different rooms, add some to the array.
The default room in which the notify
method posts to is the first from the array, or you can
specify which room to use as a default with a third constructor parameter:
Extra configuration.
The constructor accepts a third parameter with extra options.
default
: The default room to send notifications in with->notify()
.color
: Choose fromyellow
,red
,green
,purple
,gray
orrandom
.pretend
: Don't actually send any messages.notify
: Let hipchat make a sound.
Color
Choose your color depending on the type of message with the second and third parameter of the
notify
and notifyIn
method.
Laravel 4
This package comes with a Laravel 4 service provider. Add the following line to the
providers array in app.php
.
It also registers an alias for the Facade class Hipchat\Support\Facades\Hipchat
so you can just use
Hipchat::notify($message)
and Hipchat::notifyIn('frontenders', $message)
.
Publish the default configuration with the following command:
All configurable options can be found there.
Contributing
Feel free to make a pull request. Please try to be as PSR-2 compliant as possible.
License
MIT