PHPackages                             oksweb/sms-api-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. oksweb/sms-api-php

ActiveLibrary[API Development](/categories/api)

oksweb/sms-api-php
==================

PHP library for the OKSWeb SMS service.

v1.0.1(5y ago)098MITPHPPHP &gt;=5.6.0CI failing

Since May 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/oksweb/sms-api-php)[ Packagist](https://packagist.org/packages/oksweb/sms-api-php)[ Docs](https://oksweb.com)[ RSS](/packages/oksweb-sms-api-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

OKS SMS PHP Library
===================

[](#oks-sms-php-library)

The OKSWeb SMS API PHP library provides convenient access to the OKS SMS API from applications written in the PHP language.

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

[](#requirements)

PHP 5.6.0 and later.

Composer
--------

[](#composer)

You can install the library via [Composer](http://getcomposer.org/). Run the following command:

```
composer require oksweb/api-sms-php
```

Don't forget to autoload it using Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php)
- [`json`](https://secure.php.net/manual/en/book.json.php)
- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

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

[](#getting-started)

Simple usage looks like:

```
require_once('vendor/autoload.php');

$OKSWebSMSGateway = new \OKSWeb\SMS\Gateway(
    'mKdG9gjFdmuPWbFAFn9wrAi3bwJ8V6QpNcU7sCQBF9SKtfcSbE8DSgy1Mg2fbjpp', // API Key
    1, // Server ID default to 1
);

$balance = $OKSWebSMSGateway->checkBalance();

$response = $OKSWebSMSGateway->sendQuickSMS(
    '+213512345678', // This is the phone number in the E.164 Format !
    'Hello World !', // Your message
);
```

TODO
----

[](#todo)

- Documentation
- Testes
- Atomisation

Development
-----------

[](#development)

Get \[Composer\]\[composer\].

Install dependencies:

```
composer install
```

Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:

```
./vendor/bin/phpunit
```

The library uses \[PHP CS Fixer\]\[php-cs-fixer\] for code formatting. Code must be formatted before PRs are submitted, otherwise CI will fail. Run the formatter with:

```
./vendor/bin/php-cs-fixer fix -v .
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Every ~79 days

Total

3

Last Release

2038d ago

Major Versions

v0.0.1 → v1.0.02020-05-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14094226?v=4)[Bad-Y](/maintainers/Bad-Y)[@Bad-Y](https://github.com/Bad-Y)

---

Top Contributors

[![Bad-Y](https://avatars.githubusercontent.com/u/14094226?v=4)](https://github.com/Bad-Y "Bad-Y (6 commits)")

---

Tags

apismsOKSoksweb

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/oksweb-sms-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/oksweb-sms-api-php/health.svg)](https://phpackages.com/packages/oksweb-sms-api-php)
```

###  Alternatives

[smsfactor/smsfactor-php-sdk

SMSFactor client library for PHP

15382.5k2](/packages/smsfactor-smsfactor-php-sdk)[melipayamak/laravel

Laravel Melipayamak Integration

2528.9k1](/packages/melipayamak-laravel)

PHPackages © 2026

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