PHPackages                             rapidsmsng/sms-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. rapidsmsng/sms-php-sdk

ActiveLibrary[API Development](/categories/api)

rapidsmsng/sms-php-sdk
======================

Rapid SMS PHP SDK is built for Rapid SMS - Bulk SMS Application

0.1.0(5y ago)08MITPHPPHP &gt;=7.2

Since Jun 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/rapidsmsng/sms-php-sdk)[ Packagist](https://packagist.org/packages/rapidsmsng/sms-php-sdk)[ RSS](/packages/rapidsmsng-sms-php-sdk/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Rapid SMS Nigeria PHP SDK
=========================

[](#rapid-sms-nigeria-php-sdk)

Rapid SMS PHP SDK is built for Rapid SMS - Bulk SMS Application

### Prerequisites

[](#prerequisites)

To use Rapid SMS SDK you must have created an account with Rapid SMS. For more details please visit: [Rapid SMS](https://rapidsmsng.com/)

```
php >=7.2
Rapid SMS - Bulk SMS Application

```

### Installing

[](#installing)

Via Composer

```
composer require rapidsmsng/sms-php-sdk

```

And Via Bash

```
git clone https://github.com/rapidsmsng/sms-php-sdk.git

```

Usage
-----

[](#usage)

### Step 1:

[](#step-1)

If installing Rapid SMS SDK using Git Clone then load your Rapid SMS SDK Class files with the use of namespaces.

```
require_once 'src/RapidSMS.php';
use RapidSMS\RapidSMS;
```

If installing Rapid SMS API using Composer then require/include autoload.php file in the index.php of your project or whatever file you need to use **Rapid SMS SDK** classes:.

```
require 'vendor/autoload.php';
use RapidSMS\RapidSMS;
```

### Step 2:

[](#step-2)

Get your API\_KEY from `https://rapidsmsng.com/sms-api/info` (from within your account)

```
$apiKey = 'YWRtaW46YWRtaW4ucGFzc3dvcmQ=';
```

### Step 3:

[](#step-3)

Change to your Sender ID. Submit Sender ID for approval from here

```
$from = 'RapidSMSNG';
```

### Step 4:

[](#step-4)

the number we are sending to - Any phone number

```
$destination = '08028333008';
```

For multiple number please use Comma (,) after every single number.

```
$destination = '08028333008,09054036811,09087040398';
```

You can insert maximum 100 numbers using comma separated string in single api request.

### Step 5:

[](#step-5)

Replace your URL with `https://rapidsmsng.com/sms/api`. `sms/api` is mandatory.

```
$url = 'https://rapidsmsng.com/sms/api';
```

// SMS Body

```
$sms = 'Test message from RAPID SMS';
```

// Unicode SMS

```
$unicode = '1'; //For Unicode message
```

// Schedule SMS

```
$scheduleDate = '05/17/2020 10:20 AM'; //Date like this format: m/d/Y h:i A
```

// Create Plain/text SMS Body for request

```
$smsBody = array(
    'api_key' => $apiKey,
    'to' => $destination,
    'from' => $from,
    'sms' => $sms
);
```

// Create Unicode SMS Body for request

```
$smsBody = array(
    'api_key' => $apiKey,
    'to' => $destination,
    'from' => $from,
    'sms' => $sms,
    'unicode' => $unicode,
);
```

// Create SMS Body for Schedule request

```
$smsBody = array(
    'api_key' => $apiKey,
    'to' => $destination,
    'from' => $from,
    'sms' => $sms,
    'schedule' => $scheduleDate,
);
```

### Step 6:

[](#step-6)

Instantiate a new Rapid SMS API request

```
$client = new RapidSMS\RapidSMS();
```

Send SMS
--------

[](#send-sms)

Finally send your sms through Rapid SMS API

```
$response = $client->sendSms($url, $smsBody);
```

Get Inbox
---------

[](#get-inbox)

Get all your messages

```
$getInbox = $client->getInbox($apiKey, $url);
```

Get Balance
-----------

[](#get-balance)

Get your account balance

```
$getBalance = $client->checkBalance($apiKey, $url);
```

Response
--------

[](#response)

Rapid SMS API return response in `json` format, like:

```
{"code": "ok","message": "Successfully Send"}
```

Delivery Reports
----------------

[](#delivery-reports)

Pushing delivery reports to an endpoint you specify is coming soon

Status Code
-----------

[](#status-code)

StatusMessage`ok`Successfully queued`100`Bad gateway requested`101`Wrong action`102`Authentication failed`103`Invalid phone number`104`Phone coverage not active`105`Insufficient balance`106`Invalid sender id`107`Invalid SMS type`108`SMS gateway not active`109`Invalid schedule time`110`SMS contain spam word. Pending approvalAuthors
-------

[](#authors)

- **Kenneth Onah** - *Initial work* - [rapidsmsng](https://github.com/rapidsmsng)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2160d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/980f54b035425f27e30cf68d6d919ac552ec6dfc5c5bc81d1c199afc166eb87f?d=identicon)[rapidsmsng](/maintainers/rapidsmsng)

---

Top Contributors

[![kennethonah](https://avatars.githubusercontent.com/u/36448735?v=4)](https://github.com/kennethonah "kennethonah (7 commits)")[![rapidsmsng](https://avatars.githubusercontent.com/u/66851255?v=4)](https://github.com/rapidsmsng "rapidsmsng (1 commits)")

### Embed Badge

![Health badge](/badges/rapidsmsng-sms-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/rapidsmsng-sms-php-sdk/health.svg)](https://phpackages.com/packages/rapidsmsng-sms-php-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
