PHP code example of opb / laravel-hipchat

1. Go to this page and download the library: Download opb/laravel-hipchat library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

opb / laravel-hipchat example snippets


$user = 'Taylor';

HipchatNotifier::message("A new account [{$user}] signed up!");

$message = 'Warning, system is down!';
$options = [
	'notify' => true, 
	'color' => 'red',
	'from' => 'System Monitor',
	'room' => 'Emergency Notifications',
];

HipchatNotifier::message($message, $options);

HipchatNotifier::message('Test message with all default options');

$message = 'Warning, system is down!';
$options = [
	'notify' => true, 
	'color' => 'red',
	'from' => 'System Monitor',
	'room' => 'Emergency Notifications',
];

HipchatNotifier::message($message, $options);

$notifier = App::make('hipchat-notifier');

php artisan config:publish opb/laravel-hipchat

php artisan vendor:publish