library hipchat-laravel
HipChat PHP Client for Laravel 5
qwince/hipchat-laravel
HipChat PHP Client for Laravel 5
- Thursday, July 28, 2016
- by spitalia
- Repository
- 5 Watchers
- 2 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 10 Forks
- 0 Open issues
- 9 Versions
- 0 % Grown
qwince/hipchat-laravel
This a HipChat PHP Client for Laravel 5, (*1)
Installation
-
Include "qwince/hipchat-laravel"
inside the "require"
section of composer.json
file:, (*2)
...
"require": {
...,
"qwince/hipchat-laravel": "dev-master"
}
...
-
Update composer dependencies by running:, (*3)
composer update
-
Insert 'Qwince\HipchatLaravel\HipchatLaravelServiceProvider',
in your 'providers'
array, inside app/config/app.php
:, (*4)
...
'providers' => [
...
Qwince\HipchatLaravel\HipchatLaravelServiceProvider::class,
],
-
Insert 'HipChat' => Qwince\HipchatLaravel\Facade\HipChat:class,
in your 'aliases'
array, inside app/config/app.php
:, (*5)
...
'aliases' => [
...
'HipChat' => Qwince\HipchatLaravel\Facade\HipChat::class,
],
-
To Publish the configuration files you will need, run:, (*6)
php artisan vendor:publish --provider="Qwince\HipchatLaravel\HipchatLaravelServiceProvider"
-
Edit app/config/hipchat.php
file updating it your credentials / configurations:, (*7)
'server' => 'insert_your_url',
'api_token' => 'insert_your_api_token',
'app_name' => 'Your App Name',
'default_room' => 1234,
Usage
-
Notify in a Room, (*8)
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);
dev-master
9999999-dev
HipChat PHP Client for Laravel 5
Sources
Download
MIT
The Requires
by
Stefano Todaro
laravel
package
hipchat
2.0.1
2.0.1.0
HipChat PHP Client Wrapper for Laravel 4 and 5
Sources
Download
MIT
The Requires
by
Diego Hernandes
laravel
package
hipchat
dev-develop
dev-develop
HipChat PHP Client Wrapper for Laravel 4 and 5
Sources
Download
MIT
The Requires
by
Diego Hernandes
laravel
package
hipchat
2.0.0
2.0.0.0
HipChat PHP Client Wrapper for Laravel 4 and 5
Sources
Download
MIT
The Requires
by
Diego Hernandes
laravel
package
hipchat
1.0.3
1.0.3.0
HipChat PHP Client Wrapper for Laravel 4 and 5
Sources
Download
MIT
The Requires
by
Diego Hernandes
laravel
package
hipchat
1.0.0
1.0.0.0
HipChat PHP Client Wrapper for Laravel 4 and 5
Sources
Download
MIT
The Requires
by
Diego Hernandes
laravel
package
hipchat
1.0.1
1.0.1.0
HipChat PHP Client Wrapper for Laravel 4 and 5
Sources
Download
MIT
The Requires
by
Diego Hernandes
laravel
package
hipchat
1.0.2
1.0.2.0
HipChat PHP Client Wrapper for Laravel 4 and 5
Sources
Download
MIT
The Requires
by
Diego Hernandes
laravel
package
hipchat
v0.1.0
0.1.0.0
HipChat PHP Client Wrapper for Laravel 4.2+
Sources
Download
MIT
The Requires
by
Diego Hernandes
laravel
package
hipchat