phpmob/thai-bulk-sms

A PHP SMS gateway for Thai-Bulk-SMS.

Maintainers

👁 liverbool

Package info

github.com/phpmob/thai-bulk-sms

pkg:composer/phpmob/thai-bulk-sms

Statistics

Installs: 220

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-master / 1.0.x-dev 2018-07-11 11:23 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 083d34cfd16475f8085476d42929f2832e90c17a

  • Ishmael Doss <nukboon.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-19 03:31:47 UTC


README

Thai bulk sms api in php.

Installation

This package is not release yet that mean you can't install it by composer require phpmob/thai-bulk-sms at this time. For now to install you need to require it directly in your composer.json:

"require": {
 "phpmob/thai-bulk-sms": "1.0.x-dev"
}

and ..

$ composer update

Usage

// auto detect http-client
$client = \Http\Discovery\HttpClientDiscovery::find();

$sender = new \PhpMob\ThaiBulkSms\Sender($client, [
 'username' => 'thaibulksms',
 'password' => 'thisispassword',
 'force' => 'standard',
 'sender' => 'SMS',
 'sandbox' => true,
]);

// send one number
$sender->send('0818282829', 'message');

// send bulk numbers
$sender->send(['0818282829', '..number..'], 'message');

// check credit remain
$sender->checkCredit();

// All `Sender` APIs are return `PhpMob\ThaiBulkSms\Result` object.

Use GuzzleAdapter as client.

$ composer req php-http/guzzle6-adapter

and construct sender with guzzle client.

$client = new \Http\Adapter\Guzzle6\Client(...);
$sender = new \PhpMob\ThaiBulkSms\Sender($client, [...]);

LICENSE

MIT