PHPackages                             matperez/yii2unisender - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. matperez/yii2unisender

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

matperez/yii2unisender
======================

yii2 unisender extension

1.1.2(9y ago)48.0k—0%2BSDPHP

Since Oct 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/matperez/yii2-unisender)[ Packagist](https://packagist.org/packages/matperez/yii2unisender)[ RSS](/packages/matperez-yii2unisender/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (11)Used By (0)

yii2 unisender
==============

[](#yii2-unisender)

yii2 unisender extension

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist matperez/yii2unisender "~1.0"

```

or add

```
"matperez/yii2unisender": "~1.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
    'components' => [
      'unisender' => [
        'class' => \matperez\yii2unisender\UniSender::class,
        'apiConfig' => [
          'apiKey' => '...'
        ],
    ]

```

You can also use it with the dependency container:

```
    Yii::$container->setSingleton(\matperez\yii2unisender\UniSenderInterface::class, function() {
        return Yii::$app->unisender;
    });

```

For now it's supports the following operations:

Get a user fields array:

```
    $fields = $unisender->getFields()->getResult;
```

Get an available subscriptions list:

```
    $list = $unisender->getLists()->getResult();

```

Create a new subscription:

```
    $sub = new Subscriber($name, $email, $phone);
    $sub->addTag('something');
    $response = $unisender->subscribe($sub, [12315, 14333]);
    if ($response->isSuccess()) {
      $personId = $response->getResult()['person_id'];
      // .... do something with the person id
    }

```

Get the "native" API instance:

```
    $api = $unisender->getApi();
    $api->doSomethingViaMagicCall();

```

Tests
-----

[](#tests)

Just run phpunit

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~53 days

Recently: every ~120 days

Total

10

Last Release

3434d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b2fde2b42281c600f7dd9ee316a323b141294178c65ec60d949d7010ede1fe6?d=identicon)[matperez](/maintainers/matperez)

---

Top Contributors

[![chuprik](https://avatars.githubusercontent.com/u/802946?v=4)](https://github.com/chuprik "chuprik (1 commits)")[![matperez](https://avatars.githubusercontent.com/u/1917115?v=4)](https://github.com/matperez "matperez (1 commits)")

---

Tags

yii2extension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/matperez-yii2unisender/health.svg)

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7760.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1454.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

1911.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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