otezz/jatis-sms

Jatis SMS gateway API wrapper

Installs: 36

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 3

Open Issues: 1

pkg:composer/otezz/jatis-sms

1.0 2016-04-15 09:00 UTC

This package is not auto-updated.

Last update: 2025-10-26 00:40: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)