PHPackages                             bibi4k0/apple-pusher - 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. bibi4k0/apple-pusher

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

bibi4k0/apple-pusher
====================

A simple library for creating and sending push-notifications to apple devices via APNs using HTTP/2.

1.2.4(3y ago)54011[1 PRs](https://github.com/alex-eganov/apple-pusher/pulls)MITPHPPHP &gt;=8.0

Since Sep 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/alex-eganov/apple-pusher)[ Packagist](https://packagist.org/packages/bibi4k0/apple-pusher)[ RSS](/packages/bibi4k0-apple-pusher/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (4)Versions (19)Used By (0)

apple-pusher
============

[](#apple-pusher)

A simple library for creating and sending push-notifications to apple devices via APNs. Supports sending over http/2 protocol preferred by Apple and both of authentication types: token-based and via ssl-cert.

### Installation

[](#installation)

```
# for PHP 8.* only
composer require bibi4k0/apple-pusher

# for PHP 7.4+ or PHP 8.*
composer require bibi4k0/apple-pusher:^1.1

# for PHP 7.2+
composer require bibi4k0/apple-pusher:^1.0

```

### Usage

[](#usage)

```
use bIbI4k0\ApplePusher\BaseConfig;
use bIbI4k0\ApplePusher\Curl\CurlWrapper;
use bIbI4k0\ApplePusher\Sender;
use bIbI4k0\ApplePusher\Payload;

$auth = new TokenAuth(
    'your apns id',
    'your team id',
    'content from .p8 cert file or file path with prefix file://'
);

$isSandbox = false;

$sender = new Sender(
    $auth,
    new CachedCurlWrapper(),
    new BaseConfig($isSandbox)
);

$payload = new AlertPayload('Hello dude');
$push = new Push('device token', $payload);
$push->setTopic('bundle id of your app');

$resp = $sender->send($push);
if ($resp->isOk()) {
    echo 'push was sent successfully';
}
```

See also `example/cmd.php`.

### Documentation

[](#documentation)

It's simple library and hardly needs any separate documentation. Nevertheless, I tried to describe the code documentation well enough. See the source code for the more knowledges.

### Tests

[](#tests)

Some unit tests are included. Still not enough, but I'm working on it :)

Can run it by command:

`composer run unit`

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~0 days

Total

18

Last Release

1213d ago

Major Versions

1.0.4 → v10.x-dev2023-01-12

1.1.5 → v11.x-dev2023-01-12

PHP version history (4 changes)1.0.0PHP &gt;=7.2

1.1.0PHP ^7.4 | ^8.0 | ^8.1

1.2.0PHP ^8.0 | ^8.1

1.2.3PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/838efe7ae3a6ff0eede3b0c14ee17e3f3b9a76d1cb07dcb3ae7bf9ea6c29907a?d=identicon)[bIbI4k0](/maintainers/bIbI4k0)

---

Top Contributors

[![alex-eganov](https://avatars.githubusercontent.com/u/2491742?v=4)](https://github.com/alex-eganov "alex-eganov (60 commits)")

---

Tags

apnsapplephppushpushhttp2notificationappleapns

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bibi4k0-apple-pusher/health.svg)

```
[![Health](https://phpackages.com/badges/bibi4k0-apple-pusher/health.svg)](https://phpackages.com/packages/bibi4k0-apple-pusher)
```

###  Alternatives

[duccio/apns-php

Apple Push Notification &amp; Feedback Provider

1.4k2.5M13](/packages/duccio-apns-php)[sly/notification-pusher

Standalone PHP library for easy devices notifications push.

1.2k2.8M15](/packages/sly-notification-pusher)[m2mobi/apns-php

Apple Push Notification &amp; Feedback Provider

1118.2k1](/packages/m2mobi-apns-php)

PHPackages © 2026

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