2017 © Pedro Peláez
 

library hipchat-laravel

Simple hipchat notification for laravel projects.

image

stiko/hipchat-laravel

Simple hipchat notification for laravel projects.

  • Tuesday, July 25, 2017
  • by stiko
  • Repository
  • 1 Watchers
  • 0 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 92 % Grown

The README.md

hipchat-laravel

A simple hipchat nitification for laravel/Lumen, (*1)

Laravel Installation - Require composer, (*2)

composer require stiko/hipchat-laravel
  • Add ServiceProvider to app/config/app.php:
...
'providers' => [
    ...
    HipchatNotification\HipchatLaravelServiceProvider::class,
],
  • Publish
php artisan vendor:publish --provider="HipchatNotification\HipchatLaravelServiceProvider"
  • Lastly, add env variables to .env file
HIPCHAT_TOKEN=YourTokenhere
HIPCHAT_URL=YourhipchatUrlHere

Lumen Installation - Require composer, (*3)

composer require stiko/hipchat-laravel
  • Add ServiceProvider to bootstrap/app.php:
...
//Hipchat provider
$app->register('HipchatNotification\HipchatLaravelServiceProvider');
  • Copy src/config/hipchat.php to config/hipchat.php, (*4)

  • Lastly, add env variables to .env file, (*5)

HIPCHAT_TOKEN=YourTokenhere
HIPCHAT_URL=YourhipchatUrlHere

Get Token 1. Log in to Hipchat 2. click Integration 3. Choose your room then click Build your own Integration 4. In the section Send messages to this room you can find your url and token Hichat url and token, (*6)

Usage - The simplest way to start is, (*7)

use HipchatNotification\Hipchat;
...
$hipchat = new Hipchat();
$hipchat->send();

This will send a message to the room with the default settings., (*8)

  • To change the message:
$hipchat = new Hipchat();
$hipchat->message('your messsage here');
$hipchat->send();
  • Message format allowed html, text(default):
$hipchat = new Hipchat();
$hipchat->messageformat('html');
$hipchat->send();
  • To turn off room notfication (on by default):
$hipchat = new Hipchat();
$hipchat->notify(false);
$hipchat->send();
  • To cahnge color, allowed (yellow, green(default), red, purple, gray, random):
$hipchat = new Hipchat();
$hipchat->color(green);
$hipchat->send();

  • Or you could suply a full array of options:
$hipchat = new Hipchat();
$hipchat->options(
    array(
        'color' => 'green',
        'message' => 'Your message',
        'notify' => true,
        'message_format' => 'text',
    )
);
$hipchat->send();

The Versions

25/07 2017

dev-master

9999999-dev https://github.com/STIKO/hipchat-laravel/tree/master

Simple hipchat notification for laravel projects.

  Sources   Download

The Requires

 

laravel hipchat

25/07 2017

0.1.11

0.1.11.0 https://github.com/STIKO/hipchat-laravel/tree/master

Simple hipchat notification for laravel projects.

  Sources   Download

The Requires

 

laravel hipchat

25/07 2017

0.1.10

0.1.10.0 https://github.com/STIKO/hipchat-laravel/tree/master

Simple hipchat notification for laravel projects.

  Sources   Download

The Requires

 

laravel hipchat

25/07 2017

0.1.9

0.1.9.0 https://github.com/STIKO/hipchat-laravel/tree/master

Simple hipchat notification for laravel projects.

  Sources   Download

The Requires

 

laravel hipchat

23/07 2017

0.1.7

0.1.7.0 https://github.com/STIKO/hipchat-laravel/tree/master

Simple hipchat notification for laravel projects.

  Sources   Download

The Requires

 

laravel hipchat

23/07 2017

0.1.3

0.1.3.0 https://github.com/STIKO/hipchat-laravel/tree/master

Simple hipchat notification for laravel projects.

  Sources   Download

The Requires

 

laravel hipchat

23/07 2017

0.1.0

0.1.0.0 https://github.com/STIKO/hipchat-laravel/tree/master

Simple hipchat notification for laravel projects.

  Sources   Download

The Requires

 

laravel hipchat