Wallogit.com
2017 © Pedro Peláez
Installation using composer:, (*1)
composer require "kalahe/hoiio-sms 2.1"
And add the service provider in config/app.php:, (*2)
Kalahe\HoiioSms\HoiioSmsServiceProvider::class,
// E.g. Sending SMS
require 'hoiio-php/Services/HoiioService.php';
$h = new HoiioService("myAppID", "myAccessToken");
$txnRef = $h->sms("+651111111", "hello world");
print("SMS sent successfully. TxnRef: $txnRef\n");
// E.g. Building IVR
require 'hoiio-php/Services/HoiioService.php';
$h = new HoiioService("myAppID", "myAccessToken");
$notify = $h->parseIVRNotify($_POST);
$session = $notify->getSession();
$key = $notify->getDigits();
$h->ivrPlay($session, '', "You just pressed $key.");
This project is licensed under the MIT License - see the MIT License. file for details, (*3)