Skip to content

oromedialab/php-api-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP API Services Library

Installation

Install using composer

composer require oromedialab/php-api-service dev-master

Install using GIT clone

git clone git@github.com:oromedialab/php-api-service.git

Twilio

URL : (http://twilio.com/)

Compose SMS

use Oml\PHPAPIService\Twilio\SMS;

$accountSid = 'xxxxxxxxxxx';
$authToken = 'xxxxxxxxxxx';

$sms = new SMS\Compose($accountSid, $authToken);
$sms->setFrom('xxx-xxx-xxx');
$sms->setTo('xxx-xxx-xxx');
$sms->setMessage('Lorem ipsum dolor sit amet, consectetur adipisicing elit.');
$response = $sms->send();

// Get message status
$status = $response->status;
// Get message SID
$messageSid = $response->sid;

Messente

URL : (http://messente.com/)

Compose SMS

use Oml\PHPAPIService\Messente\SMS;