1. Go to this page and download the library: Download nathanmac/instant-messenger 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/ */
athanmac\InstantMessenger\Messenger;
use Nathanmac\InstantMessenger\Services\HipChatService;
use Nathanmac\InstantMessenger\Services\SlackService;
use Nathanmac\InstantMessenger\Services\HallService;
use Nathanmac\InstantMessenger\Services\JacondaService;
use Nathanmac\InstantMessenger\Services\SqwiggleService;
use Nathanmac\InstantMessenger\Services\GitterService;
use Nathanmac\InstantMessenger\Services\FlowDockService;
use Nathanmac\InstantMessenger\Services\CampFireService;
use Nathanmac\InstantMessenger\Services\GroveService;
use Nathanmac\InstantMessenger\Services\TelegramService;
use Nathanmac\InstantMessenger\Services\TwilioService;
// Twilio
$transport = new TwilioService('TWILIO ACCOUNT SID', 'TWILIO AUTH TOKEN', 'FROM PHONE', 'TO PHONE');
$messenger = new Messenger($transport);
$messenger->send(function($message) {
$message->body('Hello this is a simple notification.');
});
// Telegram
$transport = new TelegramService('TELEGRAM TOKEN', 'CHAT ID');
$messenger = new Messenger($transport);
$messenger->send(function($message) {
$message->body('Hello this is a simple notification.');
});
// Grove
$transport = new GroveService('GROVE CHANNEL TOKEN');
$messenger = new Messenger($transport);
$messenger->send(function($message) {
$message->from('Bot');
$message->body('Hello this is a simple notification.');
});
// CampFire
$transport = new CampFireService('CAMPFIRE SUBDOMAIN', 'CAMPFIRE API TOKEN', 'CAMPFIRE ROOM ID');
$messenger = new Messenger($transport);
$messenger->send(function($message) {
$message->body('Hello this is a simple notification.');
});
// FlowDock
$transport = new FlowDockService('FLOW API TOKEN', ['any', 'tags', 'for', 'the', 'message']);
$messenger = new Messenger($transport);
$messenger->send(function($message) {
$message->body('Hello this is a simple notification.');
$message->from('Bot');
$message->tags('more', 'tags', 'as', '
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.