Skip to content

im-machakata/codels-sms-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}