PHPackages                             kkamkou/sms-online-api - 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. kkamkou/sms-online-api

AbandonedArchivedLibrary[API Development](/categories/api)

kkamkou/sms-online-api
======================

API for the smsonline.ru messaging service

1.0.4(12y ago)0162MITPHPPHP &gt;=5.3

Since Jan 29Pushed 12y ago1 watchersCompare

[ Source](https://github.com/kkamkou/sms-online-api)[ Packagist](https://packagist.org/packages/kkamkou/sms-online-api)[ Docs](http://github.com/kkamkou/sms-online-api)[ RSS](/packages/kkamkou-sms-online-api/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

sms-online-api
==============

[](#sms-online-api)

API for the [smsonline.ru](http://smsonline.ru/) messaging service

### Composer

[](#composer)

Add `"kkamkou/sms-online-api": "dev-master"` to a `composer.json` file, to the `require` section and execute `composer update`

#### Example

[](#example)

```
$sms = new \SmsOnline\Api(array('api' => array('user' => '', 'secret_key' => '')));
$sms->send('76543210987', 'TestMessage');
$sms->send('76543210987', 'TestMessage', array('from' => 'MySite'));
```

#### Your own client (Default is CURL)

[](#your-own-client-default-is-curl)

```
$client = new MyClient(array('timeout' => 40));
$sms = new \SmsOnline\Api(array('client' => $client));
```

#### Response

[](#response)

```
$result = $sms->send('76543210987', 'TestMessage');
if ($result->isSuccessful()) {
  print_r($result->toArray());
  echo (string)$result;
}
```

#### HowTo

[](#howto)

##### SSL certificate problem

[](#ssl-certificate-problem)

```
$sms = new \SmsOnline\Api(
    array(
        'client' => array(
            'cainfo' => 'pathToCert'
            // or you can disable ssl verification (bad idea)
            //'ssl_verifyhost' => 0,
            //'ssl_verifypeer' => 0
        )
    )
);
```

### Tests

[](#tests)

```
phpcs --standard=psr2 SmsOnline
phpunit tests
```

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2013 Kanstantsin Kamkou

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~10 days

Total

3

Last Release

4467d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc93db9390975c0d45d1d686442b8a612c5896cf6a59c65235b916644d129b33?d=identicon)[kkamkou](/maintainers/kkamkou)

---

Top Contributors

[![kkamkou](https://avatars.githubusercontent.com/u/305739?v=4)](https://github.com/kkamkou "kkamkou (30 commits)")

---

Tags

apismssmsonline

### Embed Badge

![Health badge](/badges/kkamkou-sms-online-api/health.svg)

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

###  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)
