Package Data | |
---|---|
Maintainer Username: | stiko |
Package Create Date: | 2017-07-23 |
Package Last Update: | 2017-07-25 |
Home Page: | |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2025-02-06 03:01:51 |
Package Statistics | |
---|---|
Total Downloads: | 367 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
A simple hipchat nitification for laravel/Lumen
Laravel Installation
composer require stiko/hipchat-laravel
app/config/app.php
:...
'providers' => [
...
HipchatNotification\HipchatLaravelServiceProvider::class,
],
php artisan vendor:publish --provider="HipchatNotification\HipchatLaravelServiceProvider"
.env
fileHIPCHAT_TOKEN=YourTokenhere
HIPCHAT_URL=YourhipchatUrlHere
Lumen Installation
composer require stiko/hipchat-laravel
bootstrap/app.php
:...
//Hipchat provider
$app->register('HipchatNotification\HipchatLaravelServiceProvider');
Copy src/config/hipchat.php
to config/hipchat.php
Lastly, add env variables to .env
file
HIPCHAT_TOKEN=YourTokenhere
HIPCHAT_URL=YourhipchatUrlHere
Get Token
Integration
Build your own Integration
Send messages to this room
you can find your url
and token
Hichat url and token
Usage
use HipchatNotification\Hipchat;
...
$hipchat = new Hipchat();
$hipchat->send();
This will send a message to the room with the default settings.
$hipchat = new Hipchat();
$hipchat->message('your messsage here');
$hipchat->send();
$hipchat = new Hipchat();
$hipchat->messageformat('html');
$hipchat->send();
$hipchat = new Hipchat();
$hipchat->notify(false);
$hipchat->send();
$hipchat = new Hipchat();
$hipchat->color(green);
$hipchat->send();
$hipchat = new Hipchat();
$hipchat->options(
array(
'color' => 'green',
'message' => 'Your message',
'notify' => true,
'message_format' => 'text',
)
);
$hipchat->send();