Skip to content

PHP Package SMS Gateway untuk terhubung ke PT. Adsmedia Digital Indonesia (Adsmedia.co.id)

Notifications You must be signed in to change notification settings

fatkulnurk/adsmedia-sms-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adsmedia - SMS Gateway PHP Package

Kebutuhan untuk kirim sms menggunakan layanan dari Adsmedia.co.id

Semua respons sama seperti yang ada di dikumentasi

Requirement

  • PHP 8.1 or higher
  • extension CURL

Installation

run with composer

composer require fatkulnurk/adsmedia-sms-gateway

Usage

Setting Configuration

Fatkulnurk\AdsmediaSmsGateway\Config\Config::getInstance()
    ->set(ConfigEnum::API_KEY->name, 'your key')
    ->set(ConfigEnum::URL_ENDPOINT->name, 'your private endpoint')
    ->set(ConfigEnum::CALLBACK_URL->name, 'your callback')

Send Message

Single message

(new \Fatkulnurk\AdsmediaSmsGateway\SmsGateway())->sendMessage([
    ['number' => '08123456789', 'message' => 'Hello, World!']
]);

multiple message (max 1000 message)

(new \Fatkulnurk\AdsmediaSmsGateway\SmsGateway())->sendMessage([
    ['number' => '08123456789', 'message' => 'Hello, World!'],
    ['number' => '08123456789', 'message' => 'Hello, World!'],
    ['number' => '08123456789', 'message' => 'Hello, World!'],
]);

Get balance

(new \Fatkulnurk\AdsmediaSmsGateway\SmsGateway())->getBalance();

get callback

(new \Fatkulnurk\AdsmediaSmsGateway\SmsGateway())->getCallback();

About

PHP Package SMS Gateway untuk terhubung ke PT. Adsmedia Digital Indonesia (Adsmedia.co.id)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages