qwince/hipchat-laravel
qwince/hipchat-laravel
This a HipChat PHP Client for Laravel 5
Installation
-
Include
"qwince/hipchat-laravel"inside the"require"section ofcomposer.jsonfile:... "require": { ..., "qwince/hipchat-laravel": "dev-master" } ... -
Update composer dependencies by running:
composer update -
Insert
'Qwince\HipchatLaravel\HipchatLaravelServiceProvider',in your'providers'array, insideapp/config/app.php:... 'providers' => [ ... Qwince\HipchatLaravel\HipchatLaravelServiceProvider::class, ], -
Insert
'HipChat' => Qwince\HipchatLaravel\Facade\HipChat:class,in your'aliases'array, insideapp/config/app.php:... 'aliases' => [ ... 'HipChat' => Qwince\HipchatLaravel\Facade\HipChat::class, ], -
To Publish the configuration files you will need, run:
php artisan vendor:publish --provider="Qwince\HipchatLaravel\HipchatLaravelServiceProvider" -
Edit
app/config/hipchat.phpfile updating it your credentials / configurations:'server' => 'insert_your_url', 'api_token' => 'insert_your_api_token', 'app_name' => 'Your App Name', 'default_room' => 1234,
Usage
-
Notify in a Room
HipChat::setRoom('RoomID'); // or set default in config file HipChat::sendMessage('My Message'); // you have two optional parameters, `color` and `notify` // the 'red' will set the message color, and the third parameter when `true` notify all users on the room HipChat::sendMessage('My Message', 'red', true);
Related Packages
lab404/laravel-impersonate
Laravel Impersonate is a plugin that allows to you to authenticate as your users...
21,372,931
2,345
bschmitt/laravel-amqp
AMQP wrapper for Laravel and Lumen to publish and consume messages
2,787,132
281
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.0.1 | >=5.4.0 | 4.x| | MIT | |
| 2.0.0 | >=5.4.0 | 4.x| | MIT | |
| 1.0.3 | >=5.4.0 | 4.x| | MIT | |
| 1.0.2 | >=5.4.0 | 4.x| | MIT | |
| 1.0.1 | >=5.4.0 | 4.x| | MIT | |
| 1.0.0 | >=5.4.0 | 4.x| | MIT | |
| v0.1.0 | >=5.4.0 | 4.2.* | MIT |