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

ActivePackage[API Development](/categories/api)

cron13/smsintel-api
===================

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

0.2.0(8y ago)07MITPHPPHP &gt;=5.6.0

Since Aug 1Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (3)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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.5% 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 ~297 days

Total

2

Last Release

3276d ago

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

0.2.0PHP &gt;=5.6.0

### Community

Maintainers

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

---

Top Contributors

[![seregazhuk](https://avatars.githubusercontent.com/u/9959761?v=4)](https://github.com/seregazhuk "seregazhuk (111 commits)")[![cron13](https://avatars.githubusercontent.com/u/8538207?v=4)](https://github.com/cron13 "cron13 (3 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/cron13-smsintel-api/health.svg)

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

###  Alternatives

[theodo-group/llphant

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

1.5k311.5k5](/packages/theodo-group-llphant)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[sandorian/moneybird-api-php

Moneybird API client for PHP

127.3k](/packages/sandorian-moneybird-api-php)

PHPackages © 2026

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