otezz/jatis-sms

Jatis SMS gateway API wrapper

1.0 2016-04-15 09:00 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:30:21 UTC


README

Jatis SMS gateway API wrapper

Installation

Simply run composer require otezz/jatis-sms

Usage

Send SMS

$jatis = new \Otezz\Jatis\Sms($jatisUsername, $jatisPassword);
$response = $jatis->send([
  'destination' => $destinationNumber,
  'message'     => $message,
  'sender'      => $registeredSenderOnJatis,
  'division'    => $registeredDivisionOnJatis,
  'batchname'   => $batchName,
  'pic'         => $personInCharge,
]);

$response will return an array with following structure

code      => Status code from Jatis
message   => Response message from Jatis
messageId => Message ID from (Alphanumeric format and only exist if status code is 1)