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(2mo ago)11PHPPHP &gt;=7.4

Since Feb 20Pushed 2mo 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 1mo ago

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

30

—

LowBetter than 64% of packages

Maintenance83

Actively maintained with recent releases

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

87d 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

[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)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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