A simple class to implement celcom africa bulk sms
# Introduction
This is a Bulk SMS library build behind the Celcom Africa Bulk SMS and Sender IDs.Having started using this bulk SMS service, I tried to come up with the easiest way a developer can easily integrate this service in a PHP environment and as a result this, small light-weight library came into being. The library allows the developer in question to get account balance,send text message using both POST and GET methods,schedule a text message to be send at a later time or date and customize or personalize the text message based on provided options.
# Prerequisite
You should:
* Be registered with Celcom Africa
* Have a valid API Key
* Have the correct partner id
# Usage
* Clone this repository. In your terminal, type the following and hit enter.You may move the files to your project root folder to use _require()_ as in these examples.
```php
git clone
github.com
```
* _Refer to `index.php` for sample code snippet on how to use the class_
* After cloning,go to the file that you want to implement this or utilize this package and import the Gateway.php file as follows:
```php
account_balance();
```
* To get send message via POST
```php
send($mobile,$message,'POST');
```
* To send text message via GET
```php
send($mobile,$message);
```
* To send a scheduled text message. By default, this will be sent via POST method.
```php
schedule($mobile,$message,$time);
```
* To get message delivery report, call _$gateway->delivery_report($message_id)_ method
```php
delivery_report($message_id);
/*response will be in this format
*/
$response = ['response-code'=> 200,
'message-id'=> 158371234488,
'response-description'=> "Success",
'delivery-status'=> 32,
'delivery-description'=> "DeliveredToTerminal",
'delivery-tat'=> "00:00:20",
'delivery-networkid'=> 1,
'delivery-time'=> "2020-09-05 11:00:31"
];
/*
*You can process this in the following two ways:
** Option 1
*/
foreach ($response as $key => $value){
echo $key." ".$value;
/*or …