sendmantic/sendmantic

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Official sendmantic php library

1.0.1 2020-01-13 11:37 UTC

This package is auto-updated.

Last update: 2021-10-13 16:03:10 UTC


README

Install

composer require "sendmantic/sendmantic"

Cara menggunakan

pastikan anda sudah terdaftar di www.sendmantic.com lalu dapatkan apikey http://doc.sendmantic.my.id/#mendapatkan-api-key anda bisa pelajari lengkapnya di http://doc.sendmantic.my.id/

use Sendmantic\Sendmantic;

$apikey = 'apikey anda disini';
$sendmantic = new Sendmantic($apikey);

// get infopaket
$pakets= $sendmantic->paketinfo();
print_r($pakets);

// kirim pesan SMS
$r= $sendmantic->kirimSMS('0812xxxxxxxx','contohPesan');
print_r($r);

// kirim pesan SMS terjadwal
$r= $sendmantic->kirimSMS('0812xxxxxxxx','contohPesan','2020-01-10 21:03:01');
print_r($r);

// hitung jumlah pesan 
echo $sendmantic->hitungPesanSMS('Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis optio ipsa iusto nesciunt ratione unde in cumque, numquam officiis obcaecati totam fugiat harum fuga nisi nulla beatae modi a sunt!');

made with 💗