PHPackages                             tigusigalpa/mailru - 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. tigusigalpa/mailru

ActiveLibrary[API Development](/categories/api)

tigusigalpa/mailru
==================

MailRu for business SendBox service API

1.0.2(6y ago)012MITPHPPHP &gt;=5.6.0CI failing

Since Oct 10Pushed 6y ago1 watchersCompare

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

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

Mail.Ru for business API
========================

[](#mailru-for-business-api)

PHP wrapper of [Mail.Ru for business](https://biz.mail.ru/) to work with the API. For the moment its only [Sendbox](https://biz.mail.ru/sendbox/) integration. Official documentation

[![mailru-for-business-logo](https://user-images.githubusercontent.com/2721390/66565183-89a71500-eb6a-11e9-863b-09da5feca3f7.png)](https://user-images.githubusercontent.com/2721390/66565183-89a71500-eb6a-11e9-863b-09da5feca3f7.png)

Install
-------

[](#install)

### Client side

[](#client-side)

1. **[Add your domain to Mail.Ru](https://help.mail.ru/biz/domain/verification_settings/other/confirm)**. Approve domain via any available method: DNS TXT record or HTML file or HTML meta-tag or change domain NS records to mail.ru
2. **[Configure domain MX-records](https://help.mail.ru/biz/domain/verification_settings/other/mx)**. Keep only Mail.Ru backed MX-records:

    - Host/subdomain: `@`
    - Value: `emx.mail.ru`
    - Priority: `10`
3. **[Configure SPF-record](https://help.mail.ru/biz/domain/verification_settings/other/spf)** (TXT domain record):

    - Host/subdomain: `@`
    - Value: `v=spf1 redirect=_spf.mail.ru`
    - TTL: `21600`

    *If you are using any paid services like SMTP, your SPF-record may be another but only single one. For example, if you are using an SMTP service, SPF (TXT) record will be `v=spf1 include:send-box.ru include:smtp.send-box.ru redirect=_spf.mail.ru`*
4. **[Configure DKIM signature](https://help.mail.ru/biz/domain/records/dkim-all)**. *There may be a up to 3 DKIM records, depending on number of connected services.*
5. **Get API credentials**. Go to , select an **API** tab, activate REST API, copy **ID** (CLIENT ID) and **Secret** (CLIENT SECRET).

### Developer side

[](#developer-side)

```
$ composer require tigusigalpa/mailru
```

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

Sendbox
-------

[](#sendbox)

### Email

[](#email)

```
$email = new \Tigusigalpa\MailRu\Sendbox\Email($client_id, $client_secret);
```

### SMS

[](#sms)

```
$sms = new \Tigusigalpa\MailRu\Sendbox\SMS($client_id, $client_secret);
```

### SMTP

[](#smtp)

```
$smtp = new \Tigusigalpa\MailRu\Sendbox\SMTP($client_id, $client_secret);
```

#### Available methods

[](#available-methods)

NameArguments`sendEmail(array $email)``$email = ['html' => (string), 'text' => (string), 'template' => ['id' => (int), 'variables' => (string)], 'subject' => (string)]`Coming soon...

PHPUnit tests
-------------

[](#phpunit-tests)

Use environment variables to test API:

- **CLIENT\_ID** *(required)*
- **CLIENT\_SECRET** *(required)*
- **TIMEOUT** *(optional)*

All coverage tests are coming soon...

License
-------

[](#license)

MIT License

Author
------

[](#author)

[Igor Sazonov](https://twitter.com/tigusigalpa) ()

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

2405d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76c3a1d93c3213a8a22b4b637708d8b66a1ba3a5252624046cae7683a198b3a8?d=identicon)[tigusigalpa](/maintainers/tigusigalpa)

---

Top Contributors

[![tigusigalpa](https://avatars.githubusercontent.com/u/2721390?v=4)](https://github.com/tigusigalpa "tigusigalpa (3 commits)")

---

Tags

phpapimailrusendbox

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tigusigalpa-mailru/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[theodo-group/llphant

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

1.5k311.5k5](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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