library inmobile-sms-api
PHP wrapper for interaction with the Inmobile SMS API
vdbelt/inmobile-sms-api
PHP wrapper for interaction with the Inmobile SMS API
- Wednesday, March 25, 2015
- by vdbelt
- Repository
- 1 Watchers
- 0 Stars
- 13 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 8 % Grown
Inmobile SMS API Client for PHP
The Inmobile SMS API Client Library can be used for interaction with the Inmobile API., (*1)
Installation
Require this package with composer:, (*2)
composer require vdbelt/inmobile-sms-api
Basic usage
<?php
use Inmobile\Text;
use Inmobile\Gateway;
use Inmobile\Message;
use Inmobile\Recipient;
$gateway = Gateway::create('apiKey');
$message = Message::create('Hello world!')->from('My App')->to('4512345678');
$gateway->addMessage($message);
$gateway->send();
// Other capabilities:
$text = (new Text('Hello World'))->flash()->encoding('utf-8');
$recipients = [
(new Recipient('4512345678'))->withMessageId('my-id'),
'450000000'
];
Message::create($text)->to($recipients)->from('My App')->doNotRespectBlacklist()->scheduleAt(date_create('+1 hour'));
Reporting Issues
Report issues using the Github Issue Tracker or email martin@vandebelt.dk., (*3)
Copyright
Copyright Martin van de Belt. See LICENSE for details., (*4)
dev-master
9999999-dev
PHP wrapper for interaction with the Inmobile SMS API
Sources
Download
The Requires
The Development Requires
by
Martin van de Belt