kalahe / hoiio-sms
2.1
2017-10-24 08:53 UTC
Requires
- php: >=5.1.0
This package is not auto-updated.
Last update: 2025-08-05 08:02:20 UTC
README
Installing
Installation using composer:
composer require "kalahe/hoiio-sms 2.1"
And add the service provider in config/app.php:
Kalahe\HoiioSms\HoiioSmsServiceProvider::class,
Testging sms
// 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.");
License
This project is licensed under the MIT License - see the MIT License. file for details
Built With
- Documentation and Details - Original Hoiio repo