PHPackages                             masgeek/fuelrod-rest-api-client - 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. masgeek/fuelrod-rest-api-client

ActiveLibrary[API Development](/categories/api)

masgeek/fuelrod-rest-api-client
===============================

Fuelrod REST api package for messaging and other things

2.1.0(1mo ago)0430[1 issues](https://github.com/masgeek/fuelrod-rest-api-client/issues)[5 PRs](https://github.com/masgeek/fuelrod-rest-api-client/pulls)MITPHPPHP ^8.0

Since Jan 12Pushed 3d ago1 watchersCompare

[ Source](https://github.com/masgeek/fuelrod-rest-api-client)[ Packagist](https://packagist.org/packages/masgeek/fuelrod-rest-api-client)[ Docs](https://www.munywele.co.ke)[ RSS](/packages/masgeek-fuelrod-rest-api-client/feed)WikiDiscussions develop Synced 3w ago

READMEChangelog (5)Dependencies (4)Versions (14)Used By (0)

Fuelrod REST API Client
=======================

[](#fuelrod-rest-api-client)

PHP client library for the [Fuelrod](https://www.fuelrod.co.ke) messaging API.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- ext-curl, ext-json, ext-mbstring

Installation
------------

[](#installation)

```
composer require masgeek/fuelrod-rest-api-client
```

Usage
-----

[](#usage)

### Credential-based authentication

[](#credential-based-authentication)

```
use Fuelrod\Fuelrod;

$client = new Fuelrod(
    username: 'your-username',
    password: 'your-password',
    baseUrl:  'https://api.fuelrod.co.ke',
);
```

### API key authentication

[](#api-key-authentication)

Pass an API key as the fourth argument. When an API key is provided the `user`and `password` fields are omitted from every request payload.

```
$client = new Fuelrod(
    username: 'your-username',
    password: 'your-password',
    baseUrl:  'https://api.fuelrod.co.ke',
    apiKey:   'your-api-key',
);
```

### Sending a single SMS

[](#sending-a-single-sms)

```
$response = $client->singleSms([
    'to'      => '0712345678',   // or E.164: '+254712345678'
    'message' => 'Hello from Fuelrod!',
]);

// $response['status'] === 'success' | 'error'
// $response['data']   === decoded response body
```

### Sending a plain SMS

[](#sending-a-plain-sms)

```
$response = $client->plainSms([
    'to'      => '+254712345678',
    'message' => 'Hello from Fuelrod!',
]);
```

### Sending a premium SMS

[](#sending-a-premium-sms)

```
$response = $client->premiumSms([
    'to'      => '+254712345678',
    'message' => 'Hello from Fuelrod!',
]);
```

### Response shape

[](#response-shape)

Every method returns an associative array:

KeyTypeDescription`status``string``"success"` on 2xx, `"error"` on a 4xx client error`data``object|string`Decoded JSON body, or raw string if the body is not JSONServer-level errors (5xx, network timeouts) throw `GuzzleHttp\Exception\GuzzleException`.

### Validation errors

[](#validation-errors)

`FuelrodException` (code 422) is thrown when:

- `to` is missing, empty, or not a string
- `message` is missing or empty
- The phone number does not match `+?[0-9]{7,15}` (E.164 or local format)

Phone number format
-------------------

[](#phone-number-format)

FormatExampleLocal`0712345678`E.164`+254712345678`Running tests
-------------

[](#running-tests)

```
composer test
```

License
-------

[](#license)

MIT

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance96

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94% 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 ~304 days

Total

5

Last Release

42d ago

Major Versions

1.1.0 → 2.0.02023-03-09

PHP version history (2 changes)1.0.0PHP &gt;=7.4

2.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7697b801e0b866d1e274ac0e73cb0f09772e5a851bc50ae1bc0e74355e27c2e9?d=identicon)[masgeek](/maintainers/masgeek)

---

Top Contributors

[![masgeek](https://avatars.githubusercontent.com/u/6058175?v=4)](https://github.com/masgeek "masgeek (79 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (5 commits)")

---

Tags

smsAfricastalkingfuelrodmunywele

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/masgeek-fuelrod-rest-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/masgeek-fuelrod-rest-api-client/health.svg)](https://phpackages.com/packages/masgeek-fuelrod-rest-api-client)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[africastalking/africastalking

Official Africa's Talking PHP SDK

120596.3k12](/packages/africastalking-africastalking)[plivo/plivo-php

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

1113.0M19](/packages/plivo-plivo-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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