PHPackages                             kjos/orangesmsapi - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. kjos/orangesmsapi

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kjos/orangesmsapi
=================

send sms, get token, get status, get pourchases, get balance

020PHP

Since Dec 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jeankoffi543/orangesmsapi)[ Packagist](https://packagist.org/packages/kjos/orangesmsapi)[ RSS](/packages/kjos-orangesmsapi/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

orangesmsapi
============

[](#orangesmsapi)

send sms, get token, get status, get pourchases, get balance orangesmsAPI

**INSTALLATION**

```
composer require kjos/orangesmsapi

```

**OR if you get error use**

```
composer require kjos/orangesmsapi:dev-main

```

**USAGE**

```
use Kjos\Sms\OrangeSms;

```

**Without token**

```
$config = ['client_id' => $client_id, 'client_secret' => $client_secret];

```

**With token**

```
$config = ['access_token' => "SOME TOKENS"];

```

**More options: ressource\_id and, verify\_peerSSL**

```
$config = ['client_id' => $client_id, 'client_secret' => $client_secret, 'ressource_id' => $ressource_id, 'verify_peerSSL' => $verify_peerSSL];

```

**After Config, add this code:**

```
$sms = new OrangeSms($config);

$message = "Hello World!";

$sms->setRecipientPhoneNumber($recipientPhoneNumber);
$sms->setSenderAddress($ourDevPhoneNumber);
$sms->setMessage($message);
$result = $sms->sendSms();

```

**GET POUSCHASE HISTORY**

```
$smsPourchaseHistory = $sms->getSmsPourchaseHistory();

```

**GET SMS USAGE**

```
$smsUsage = $sms->getSmsUsage();

```

**GET SMS BALANCE**

```
$smsBalance = $sms->getSmsBalance();

```

**GET AUTHORIZATION HEADER**

```
$smsAuthorizationHeader = $sms->generateAuthorizationHeader();

```

**with campany name**

```
$senderName = $sms->setSenderName("Your Campany");

```

**OTHER OPTIONS**

```
$sms->setAccept("application/json"); // default : "application/json"
$sms->setAccept("application/x-www-form-urlencoded"); // default : "application/x-www-form-urlencoded"
$sms->setGrantType("client_credentials"); // default : "client_credentials"

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d8b4bf689202fe6d45f906d4c2b90e7bae704df82aac00e1df5f16e5dfd7a34?d=identicon)[jeankoffi543](/maintainers/jeankoffi543)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kjos-orangesmsapi/health.svg)

```
[![Health](https://phpackages.com/badges/kjos-orangesmsapi/health.svg)](https://phpackages.com/packages/kjos-orangesmsapi)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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