immachakata/codelsms

PHP Bulk sms wrapper for Codel Sms

v1.0.2 2024-07-23 22:20 UTC

This package is auto-updated.

Last update: 2024-11-07 09:29:28 UTC


README

CI Test Package Packagist Version Packagist Downloads Packagist License

Codel Bulk Sms (Un-Official)

This is an unofficial package for the codel bulk sms (also known as 2waychat.com).

How it works

This version interacts with the Codel Sms API and does not provide any additional functions.

Installation

To install and use this library, you'll need to have composer installed. After that, you can install this library with the following composer command:

composer require immachakata/codelsms

Usage

Initialize an sms instance as follows:

use IsaacMachakata\CodelSms\Sms;
use IsaacMachakata\CodelSms\Client;

$client =  new Client($apiToken);
$sms = Sms::new('263771000000','Your message goes here...');

$response = $client->send($sms);
if($response->isOk()){
    // Sip some coffee
} else {
    // Scratch your head
}