PHPackages                             razor-informatics/ri-notifier-php - 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. razor-informatics/ri-notifier-php

ActiveLibrary[API Development](/categories/api)

razor-informatics/ri-notifier-php
=================================

Official PHP SDK for Razor Informatics Notifier Project

v0.2.0(2mo ago)1140MITPHPPHP &gt;=8.1

Since Aug 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/razor-informatics/ri-notifier-php)[ Packagist](https://packagist.org/packages/razor-informatics/ri-notifier-php)[ RSS](/packages/razor-informatics-ri-notifier-php/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Razor Informatics Notifier PHP SDK
==================================

[](#razor-informatics-notifier-php-sdk)

> This SDK provides easier work with Razor Informatics Notifier API for applications written in PHP.

POSTMAN Collection
------------------

[](#postman-collection)

[![Run In Postman](https://camo.githubusercontent.com/82ccefddb001e2caf9d399f1153fdda561cf3da341bb270e18644d516906bc64/68747470733a2f2f72756e2e7073746d6e2e696f2f627574746f6e2e737667)](https://app.getpostman.com/run-collection/4421476-caefe8a2-77dc-4323-bd26-11f2df86946f?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D4421476-caefe8a2-77dc-4323-bd26-11f2df86946f%26entityType%3Dcollection%26workspaceId%3D159f2a8d-aabb-46d7-a6e3-9912793cede7)

Documentation
-------------

[](#documentation)

To get the depth details of the api check [API docs here](https://notifier.razorinformatics.co.ke).

Install
-------

[](#install)

You can install the PHP SDK via composer or by downloading the source

#### Via Composer

[](#via-composer)

The recommended way to install the SDK is with [Composer](http://getcomposer.org/).

```
composer require razor-informatics/ri-notifier-php
```

Usage
-----

[](#usage)

The SDK needs to be instantiated using your API key, which you can get from the project settings [here](https://notifier.razorinformatics.co.ke/dashboard).

### Send Message Example

[](#send--message-example)

```
use RazorInformatics\RiNotifierPhp;

$apiKey  = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);

$results = $razor->message()->send([
        'phone_number' => 0700XXXYYY,
        'message' => "Howdy welcome to the team"
]);

print_r($results);
```

### Fetch message Example

[](#fetch-message-example)

details of a previous sent message.

```
use RazorInformatics\RiNotifierPhp;

$apiKey  = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);

$results = $razor->message()->fetchMessage('MESSAGE ID');

print_r($results);
```

### Decode Mpesa Hash Example

[](#decode-mpesa-hash-example)

Decode a hash to retrieve the original message details.

```
use RazorInformatics\RiNotifierPhp;

$apiKey  = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);

$results = $razor->decoder()->decode('HASH_VALUE');

print_r($results);
```

On success, this will return:

```
[
    'status' => 'success',
    'data' => [
        'phone_number' => '254700100100',
        'charged' => 0.1
    ]
]
```

On failure, it will return:

```
[
    'status' => 'error',
    'message' => 'Error message here',
    'data' => []
]
```

### Get Account Details Example

[](#get-account-details-example)

The data available is project details &amp; current account balance

```
use RazorInformatics\RiNotifierPhp;

$apiKey  = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);

$results = $razor->account()->getDetails();

print_r($results);
```

### Get Gateway Balance Example

[](#get-gateway-balance-example)

Get the account balance of gateway selected when available. Available gateways are

- Notifier (project balance)
- Celcom Africa
- Emreign
- Africa’s Talking
- Onfon Media
- Web SMS
- *more coming soon.*

```
use RazorInformatics\RiNotifierPhp;

$apiKey  = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);

$results = $razor->gateway(Constants::GATEWAY_NOTIFIER)->details();

print_r($results);
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance88

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~271 days

Recently: every ~299 days

Total

6

Last Release

60d ago

PHP version history (2 changes)v0.1.0PHP &gt;=7.1

v0.1.4PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13314308?v=4)[Mureithi Maina](/maintainers/mureithimaina)[@mureithimaina](https://github.com/mureithimaina)

---

Top Contributors

[![mureithimaina](https://avatars.githubusercontent.com/u/13314308?v=4)](https://github.com/mureithimaina "mureithimaina (16 commits)")

---

Tags

notifierphpsdksms-apiapinotifiersmstext messagerazor informatics

### Embed Badge

![Health badge](/badges/razor-informatics-ri-notifier-php/health.svg)

```
[![Health](https://phpackages.com/badges/razor-informatics-ri-notifier-php/health.svg)](https://phpackages.com/packages/razor-informatics-ri-notifier-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M45](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1143.1M19](/packages/plivo-plivo-php)[plivo/php-sdk

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1112.0M6](/packages/plivo-php-sdk)[africastalking/africastalking

Official Africa's Talking PHP SDK

122620.2k13](/packages/africastalking-africastalking)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)

PHPackages © 2026

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