richbarrett / itagg-sdk-php
PHP SDK for the iTagg SMS service
Installs: 60
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/richbarrett/itagg-sdk-php
Requires
- php: >=5.6.0
- nategood/httpful: ^0.2.20
This package is not auto-updated.
Last update: 2021-07-07 08:09:04 UTC
README
Overview
This was created as a lightweight PHP SDK for communicating with the iTAGG SMS API.
Usage
include_once('vendor/autoload.php'); use richbarrett\itagg\send; $send = new send('YOUR_USER','YOUR_PASSWORD'); $send->addTo('00000000000'); $send->setBody('Hello world'); $send->setFrom('iTagg SMS'); try { $response = $send->sendRequest(); die('Success!'); } catch (\Exception $e) { die('Failed with error: '.$e->getMessage()); }