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 1mo ago

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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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