PHPackages                             tecsvit/yii2-apns - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. tecsvit/yii2-apns

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

tecsvit/yii2-apns
=================

Extension for sending Apple push notification

v1.1.2(7y ago)0962Apache-2.0PHPPHP &gt;=5.5.0

Since Dec 5Pushed 7y ago2 watchersCompare

[ Source](https://github.com/fa2mm/tecsvit-apns)[ Packagist](https://packagist.org/packages/tecsvit/yii2-apns)[ RSS](/packages/tecsvit-yii2-apns/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

Yii2 APNs Extension
===================

[](#yii2-apns-extension)

Extension for sending Apple push notification

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist tecsvit/yii2-apns "*"

```

or add

```
"tecsvit/yii2-apns": "*"

```

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

Usage
-----

[](#usage)

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

into config file:

```
'components' => [
    ...
    'apns' => [
        'class' => '\tecsvit\apns\src\Sender',
        'apnsHostProd'  => 'gateway.push.apple.com',
        'apnsHostTest'  => 'gateway.sandbox.push.apple.com',
        'apnsPort'      => 2195,
        'apnsCertProd'  => dirname(__DIR__) . '/path/to/prod-serc/apple_push_notification_production.pem',
        'apnsCertTest'  => dirname(__DIR__) . '/path/to/test-serc/apple_push_notification_test.pem',
        'apnsPassphrase'=> dirname(__DIR__) . '/path/to/passphare',
        'timeout'       => 500000, //microseconds,
        'mode'          => 'prod' //'prod', 'dev' or 'test', default 'dev'
    ],
    ...
]
```

into your code:

```
/**
 * @param array $alert Example: ['alert' => 'Push Message']
 * @param string $token Apple token device
 * @param bool $closeAfterPush Close the connection after the push?
 */
Yii::$app->apns->send($alert, $token, $closeAfterPush); ?>
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~52 days

Recently: every ~8 days

Total

6

Last Release

2816d ago

### Community

Maintainers

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

---

Top Contributors

[![fa2mm](https://avatars.githubusercontent.com/u/3799461?v=4)](https://github.com/fa2mm "fa2mm (14 commits)")[![SiarheiVolkau](https://avatars.githubusercontent.com/u/9957833?v=4)](https://github.com/SiarheiVolkau "SiarheiVolkau (1 commits)")

---

Tags

yii2extensionapns

### Embed Badge

![Health badge](/badges/tecsvit-yii2-apns/health.svg)

```
[![Health](https://phpackages.com/badges/tecsvit-yii2-apns/health.svg)](https://phpackages.com/packages/tecsvit-yii2-apns)
```

###  Alternatives

[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

87129.2k2](/packages/nterms-yii2-mailqueue)[nickcv/yii2-mandrill

Mandrill Api Integration for Yii2

29554.2k2](/packages/nickcv-yii2-mandrill)[odaialali/yii2-toastr

This is the Toastr extension for Yii 2. It encapsulates Toastr plugin in terms of Yii widgets, and makes ajax notification easy to implement.

1486.3k](/packages/odaialali-yii2-toastr)

PHPackages © 2026

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