Skip to content

AndreasLyngholm/inmobile-sms-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inmobile SMS API Client for PHP

The Inmobile SMS API Client Library can be used for interaction with the Inmobile API.

Installation

Require this package with composer:

composer require andreaslyngholm/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'));

About

Library to connect to the Inmobile SMS API.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%