immachakata / codelsms
PHP Bulk sms wrapper for Codel Sms
v1.0.2
2024-07-23 22:20 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- phpunit/phpunit: ^11.2
README
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 }