PHPackages                             seregazhuk/smsintel-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. seregazhuk/smsintel-api

ActivePackage[API Development](/categories/api)

seregazhuk/smsintel-api
=======================

A PHP wrapper for the SmsIntel api. Provides one interface for both XML and JSON API requests.

0.2.1(6y ago)12.1k2[1 PRs](https://github.com/seregazhuk/php-smsintel-api/pulls)MITPHPPHP &gt;=7.0CI failing

Since Aug 1Pushed 6y ago2 watchersCompare

[ Source](https://github.com/seregazhuk/php-smsintel-api)[ Packagist](https://packagist.org/packages/seregazhuk/smsintel-api)[ RSS](/packages/seregazhuk-smsintel-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (5)Versions (6)Used By (0)

SmsIntel PHP Api
================

[](#smsintel-php-api)

 [![SmsIntel PHP Api](logo.png)](logo.png)

[![](https://camo.githubusercontent.com/fa35c11b2111f57af14fbaf53008b8b3b62498b2e896869db02cf428337670b3/68747470733a2f2f7472617669732d63692e6f72672f7365726567617a68756b2f7068702d736d73696e74656c2d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/seregazhuk/php-smsintel-api)[![](https://camo.githubusercontent.com/26e1c9a0c9ab04357e2747c63cad94091c0a520d2dcf5f8d24de73dc72596245/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7365726567617a68756b2f7068702d736d73696e74656c2d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/seregazhuk/php-smsintel-api/?branch=master)[![](https://camo.githubusercontent.com/bb20252f9cd8bab9a73bea1442eb5c6260f98a66b2cfddfe60c3859b50618316/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7365726567617a68756b2f7068702d736d73696e74656c2d6170692f6261646765732f6770612e737667)](https://codeclimate.com/github/seregazhuk/php-smsintel-api)[![](https://camo.githubusercontent.com/693f162eccc36bd32725d44bf79a74731c54d4fe6b035ede5a6520abc39db767/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7365726567617a68756b2f7068702d736d73696e74656c2d6170692f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/seregazhuk/php-smsintel-api/coverage)[![](https://camo.githubusercontent.com/6faa7cda24d7fdd8a38481591738be466007fce56687f3560bb5f5452a2b0d02/68747470733a2f2f706f7365722e707567782e6f72672f7365726567617a68756b2f736d73696e74656c2d6170692f762f737461626c65)](https://packagist.org/packages/seregazhuk/smsintel-api)[![](https://camo.githubusercontent.com/e6e0b50ccc47c5281199fdc60ce8e413f5fb7a243221a541f1c006a6c350de34/68747470733a2f2f706f7365722e707567782e6f72672f7365726567617a68756b2f736d73696e74656c2d6170692f646f776e6c6f616473)](https://packagist.org/packages/seregazhuk/smsintel-api)

Library provides common interface for making requests to both XML and JSON [smsintel API](http://www.smsintel.ru/integration/).

- [Dependencies](#dependencies)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Sending messages](#sending-messages)
- [Groups and contacts](#groups-and-contacts)
- [Account](#account)
- [Reports](#reports)

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

[](#dependencies)

Library requires CURL extension and PHP 5.5.9 or above.

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

[](#installation)

Via [Composer](http://getcomposer.org):

```
composer require seregazhuk/smsintel-api

```

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

[](#quick-start)

```
// You may need to amend this path to locate composer's autoloader
require('vendor/autoload.php');

use seregazhuk\SmsIntel\SmsIntel;

$sender = SmsIntel::create('login', 'password');

// send sms
$result = $sender->send('phoneNumber', 'From', 'Your message text');
```

Sending messages
----------------

[](#sending-messages)

To send message to one phone number:

```
$result = $sender->send('phoneNumber', 'From', 'Your message text');
```

You can pass an array of phones:

```
$phones = [
 '79999999999'
 '79999999991'
 '79999999992'
];
$result = $sender->send($phones, 'From', 'Your message text');
```

Cancel sms by id:

```
$result = $sender->cancel($smsId);
```

Request a source name:

```
$result = $sender->requestSource('FromPHP');
```

Groups and contacts
-------------------

[](#groups-and-contacts)

Get contact info by phone number:

```
$contact = $sender->getPhoneInfo('79999999999');
```

Get all contacts:

```
$contacts = $sender->getContacts();
```

Contacts for specific group:

```
$groupId = 1;
$contacts = $sender->getContacts($groupId);
```

Contacts by phone number:

```
$phone = '79999999999';
$contacts = $sender->getContacts(null, $phone);

// or with group:
$groupId = 1;
$contacts = $sender->getContacts($groupId, $phone);
```

Create a new contact:

```
$contactInfo = [
	'idGroup' => 1 // required
	'phone'   => '79999999999' // required
	'f'       => 'Second Name',
	'i'       => 'First Name',
	'o'       => 'Middle Name',
	'bday'    => 'YYYY-mm-dd',
	'sex'     => 1 // 1 - male, 2 - female
];
$result = $sender->addContact($contactInfo);
```

Remove contact by phone number:

```
$sender->removeContact('79999999999');
```

You can pass optionally group id:

```
$groupId = 1;
$sender->removeContact('79999999999', $groupId);
```

Get all groups:

```
$groups = $send->getGroups();
```

Get group by id or name:

```
$groups = $sender->getGroups($groupId);
$groups = $sender->getGroups(null, $groupName);
```

Create a new group of contacts:

```
$result = $sender->createGroup('NewGroup');
```

Edit group name by id:

```
$result = $sender->editGroup($newName, $groupId);
```

Account
-------

[](#account)

Get account info:

```
$result = $sender->getAccountInfo();
```

Get balance:

```
$result = $sender->getBalance();
```

Use discount coupon:

```
$result = $sender->checkCoupon('couponCode');
```

Only check discount coupon:

```
$result = $sender->checkCoupon('couponCode', false);
```

Reports
-------

[](#reports)

Get report for period by phone number:

```
$result = $sender->getReportByNumber($dateFrom, $dateTo, '79999999999');
```

Get report for period and for all numbers:

```
$result = $sender->getReportByNumber($dateFrom, $dateTo);
```

Get report by smsId:

```
$result = $sender->getReportBySms($smsId);
```

Get report for period by source:

```
$result = $sender->getReportBySource($dateFrom, $dateTo, 'FromPHP');
```

Get report for period for all sources:

```
$result = $sender->getReportBySource($dateFrom, $dateTo);
```

How can I thank you?
--------------------

[](#how-can-i-thank-you)

Why not star the github repo? I'd love the attention!

Thanks!

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.2% 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 ~578 days

Total

3

Last Release

2463d ago

PHP version history (3 changes)0.1PHP &gt;=5.5.9

0.2.0PHP &gt;=5.6.0

0.2.1PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![seregazhuk](https://avatars.githubusercontent.com/u/9959761?v=4)](https://github.com/seregazhuk "seregazhuk (117 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

phplibsmsintel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seregazhuk-smsintel-api/health.svg)

```
[![Health](https://phpackages.com/badges/seregazhuk-smsintel-api/health.svg)](https://phpackages.com/packages/seregazhuk-smsintel-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k371.6k6](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

596.2M35](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M11](/packages/checkout-checkout-sdk-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

72287.1k1](/packages/mozex-anthropic-laravel)[clicksend/clicksend-php

301.6M11](/packages/clicksend-clicksend-php)

PHPackages © 2026

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