PHPackages                             dyce/osms - 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. dyce/osms

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

dyce/osms
=========

PHP library wrapper of the Orange SMS API.

v2.0.3(4y ago)012MITPHPPHP &gt;=5.3.0

Since Apr 10Pushed 4y agoCompare

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

READMEChangelog (2)DependenciesVersions (10)Used By (0)

Osms
====

[](#osms)

A PHP library to access Orange SMS API.

Current version: 2.0.3

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

[](#installation)

### With Composer (recommended)

[](#with-composer-recommended)

Install [Composer](https://getcomposer.org/). Then, do:

```
$ composer require dyce/osms

```

### Without Composer

[](#without-composer)

Simply [download the latest release](https://github.com/dycesystems/osms-php/archive/master.zip).

Loading
-------

[](#loading)

You can load the class using Composer's autoloading:

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

Otherwise, you can simply require the file directly:

```
require 'path/to/Osms.php';
```

Quick Start
-----------

[](#quick-start)

**Case 1: You have no access token**

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

use \Osms\Osms;

$config = array(
    'clientId' => 'your_client_id',
    'clientSecret' => 'your_client_secret'
);

$osms = new Osms($config);

// retrieve an access token
$response = $osms->getTokenFromConsumerKey();

if (!empty($response['access_token'])) {
    $senderAddress = 'tel:+22500000000';
    $receiverAddress = 'tel:+22500000000';
    $message = 'Hello World!';
    $senderName = 'Optimus Prime';

    $osms->sendSMS($senderAddress, $receiverAddress, $message, $senderName);
} else {
    // error
}
```

**Case 2: You have an access token**

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

use \Osms\Osms;

$config = array(
    'token' => 'your_access_token'
);

$osms = new Osms($config);

$senderAddress = 'tel:+22500000000';
$receiverAddress = 'tel:+22500000000';
$message = 'Hello World!';
$senderName = 'Optimus Prime';

$osms->sendSMS($senderAddress, $receiverAddress, $message, $senderName);
```

Check out [examples](https://github.com/dycesystems/osms-php/tree/master/examples) for more examples.

CHECK OUT also [Osms.php](https://github.com/dycesystems/osms-php/blob/master/src/Osms.php) to see all the methods available. But DON'T MODIFY IT. You can extend the class to add your own stuff.

SSL certificate problem
-----------------------

[](#ssl-certificate-problem)

If you get an SSL error, set the peer's certificate checking option to false:

```
$osms = new Osms();
$osms->setVerifyPeerSSL(false);
```

But it should work on your hosting server, so enable the certificate checking when you are ready to deploy your application for security reasons.

Documentation
-------------

[](#documentation)

- Native API

License
-------

[](#license)

Released under the MIT License - see `LICENSE.txt` for details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 72.4% 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 ~295 days

Recently: every ~566 days

Total

9

Last Release

1694d ago

Major Versions

v1.1.0 → v2.02015-09-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/5daef63a9fbc4df033c2eb68a549133ccd8280dd6f3739938a0bce7d76bc983b?d=identicon)[dyce](/maintainers/dyce)

---

Top Contributors

[![ismaeltoe](https://avatars.githubusercontent.com/u/5407566?v=4)](https://github.com/ismaeltoe "ismaeltoe (21 commits)")[![mpittiloni](https://avatars.githubusercontent.com/u/5924464?v=4)](https://github.com/mpittiloni "mpittiloni (8 commits)")

---

Tags

phpjsonapiclientrestcurlhttp clientweb servicesmsrestfulrequestsorange

### Embed Badge

![Health badge](/badges/dyce-osms/health.svg)

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

###  Alternatives

[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[php-curl-class/php-curl-class

PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs.

3.3k9.5M353](/packages/php-curl-class-php-curl-class)[arhitector/yandex

PHP SDK для работы с некоторыми сервисами яндекса (Яндекс.Диск, Yandex.Disk)

13082.9k5](/packages/arhitector-yandex)

PHPackages © 2026

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