oromedialab / php-api-service
PHP API Service Library
0.1
2016-02-02 05:55 UTC
Requires
- twilio/sdk: *
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2025-01-04 20:04:17 UTC
README
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;