Download the PHP package hoiio/hoiio-php without Composer
On this page you can find all versions of the php package hoiio/hoiio-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hoiio/hoiio-php
More information about hoiio/hoiio-php
Files in hoiio/hoiio-php
Package hoiio-php
Short Description Hoiio API provides telephony services such as call, SMS and interactive voice responses (IVR). This SDK makes using the API a breeze.
License MIT
Homepage http://developer.hoiio.com/
Informations about the package hoiio-php
hoiio-php
hoiio-php is a PHP SDK for Hoiio's Voice and SMS API. It encapsulates the REST communications and let developers use the API via a few simple classes.
Currently, hoiio-php supports the Call, SMS, Account, Hoiio Number and IVR APIs.
Requirements
- PHP 5 >= 5.1
- PHP JSON extension
- PHP cURL extension
Installation
Just download and extract the package into your project folder. You should be able to see a hoiio-php/ folder.
Or if you are using composer, you can add this to your composer.json
{
"require": {
"hoiio/hoiio-php": "*"
}
}
Usage
You will be able to access all of Hoiio's API via the HoiioService class. Check the docs for details.
// 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 under MIT License. See LICENSE file for details.
Contact Us
If you have any questions, please feel free to contact us: