Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/im-machakata/codels-sms-php

PHP wrapper for 2waychat.com bulk sms by codel.co.zw
https://github.com/im-machakata/codels-sms-php

2waychat-sms bulk-sms codel-sms php-wrapper sms-api

Last synced: about 1 month ago
JSON representation

PHP wrapper for 2waychat.com bulk sms by codel.co.zw

Awesome Lists containing this project

README

        

[![CI Test Package](https://github.com/im-machakata/codels-sms/actions/workflows/ci-test.yml/badge.svg)](https://github.com/im-machakata/codels-sms/actions/workflows/ci-test.yml)
![Packagist Version](https://img.shields.io/packagist/v/immachakata/codelsms)
![Packagist Downloads](https://img.shields.io/packagist/dt/immachakata/codelsms)
![Packagist License](https://img.shields.io/packagist/l/immachakata/codelsms)

# Codel Bulk Sms (Un-Official)
This is an **unofficial** package for the [codel](https://codel.co.zw) bulk sms (also known as [2waychat.com](https://2waychat.com)).

## How it works

This version interacts with the [Codel Sms API](https://2waychat.com) 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:

```sh
composer require immachakata/codelsms
```

## Usage

Initialize an sms instance as follows:

```php
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
}