PHPackages                             iamphort/kenosms-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. iamphort/kenosms-php

ActiveLibrary[API Development](/categories/api)

iamphort/kenosms-php
====================

PHP SDK for KenoSMS API

0.1.0(4mo ago)11PHPPHP &gt;=7.4

Since Feb 20Pushed 4mo agoCompare

[ Source](https://github.com/PhortKid/kenosms-php)[ Packagist](https://packagist.org/packages/iamphort/kenosms-php)[ RSS](/packages/iamphort-kenosms-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

KenoSMS PHP SDK
===============

[](#kenosms-php-sdk)

Official PHP SDK for sending and managing SMS via the KenoSMS HTTP API.

This SDK provides a simple interface for:

- Sending SMS messages
- Scheduling SMS delivery
- Retrieving a single SMS by UID
- Listing all SMS messages

---

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

[](#installation)

Install via Composer:

```
composer require iamphort/kenosms-php
```

---

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

[](#requirements)

- PHP 7.4 or higher
- cURL extension enabled
- Composer

---

Getting Started
---------------

[](#getting-started)

### 1. Include Composer Autoload

[](#1-include-composer-autoload)

```
require 'vendor/autoload.php';
```

### 2. Import the Namespace

[](#2-import-the-namespace)

```
use KenoSMS\KenoSMS;
```

### 3. Initialize the Client

[](#3-initialize-the-client)

```
$sms = new KenoSMS("YOUR_API_TOKEN");
```

Replace `YOUR_API_TOKEN` with your actual API token provided by KenoSMS.

---

Send SMS
--------

[](#send-sms)

```
$response = $sms->sendSMS(
    "2557XXXXXXXX",
    "KENOSMS",
    "Hello from KenoSMS PHP SDK!"
);

print_r($response);
```

### Parameters

[](#parameters)

ParameterTypeRequiredDescriptionrecipientstringYesRecipient phone number (e.g., 2557XXXXXXXX)sender\_idstringYesRegistered Sender IDmessagestringYesSMS message contenttypestringNoSMS type (default: `plain`)schedule\_timestringNoSchedule date/time (`YYYY-MM-DD HH:MM:SS`)dlt\_template\_idstringNoDLT Template ID if required---

Send Scheduled SMS
------------------

[](#send-scheduled-sms)

```
$response = $sms->sendSMS(
    "2557XXXXXXXX",
    "KENOSMS",
    "This message is scheduled",
    "plain",
    "2026-02-25 10:00:00"
);

print_r($response);
```

---

Get a Single SMS
----------------

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

Retrieve SMS details using its unique ID (UID):

```
$response = $sms->getSMS("SMS_UNIQUE_ID");

print_r($response);
```

---

List All SMS
------------

[](#list-all-sms)

```
$response = $sms->listSMS();

print_r($response);
```

---

API Endpoint
------------

[](#api-endpoint)

This SDK communicates with:

```
https://sms.kenosis.co.tz/api/http/sms

```

---

Error Handling Example
----------------------

[](#error-handling-example)

```
try {
    $response = $sms->sendSMS(
        "2557XXXXXXXX",
        "KENOSMS",
        "Testing error handling"
    );

    print_r($response);
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}
```

---

Response Format
---------------

[](#response-format)

All methods return a decoded JSON response as an associative array.

Example:

```
Array
(
    [status] => success
    [message] => SMS sent successfully
    [data] => Array
        (
            [uid] => abc123xyz
        )
)
```

---

License
-------

[](#license)

MIT License

---

Author
------

[](#author)

KenoSMS Website:

---

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance75

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9162c122601ce95ce3f1bcc2f6aaea964227d5270fa873ccd3f4c0a71b8dd352?d=identicon)[PhortKid](/maintainers/PhortKid)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/iamphort-kenosms-php/health.svg)

```
[![Health](https://phpackages.com/badges/iamphort-kenosms-php/health.svg)](https://phpackages.com/packages/iamphort-kenosms-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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