PHPackages                             jwage/php-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. jwage/php-apns

AbandonedArchivedLibrary

jwage/php-apns
==============

Object Oriented PHP Apple Push Notification Integration Library

v0.0.3(12y ago)104275.5k↓25%26[3 issues](https://github.com/jwage/php-apns/issues)MITPHPPHP &gt;=5.3.0

Since Dec 10Pushed 10y ago10 watchersCompare

[ Source](https://github.com/jwage/php-apns)[ Packagist](https://packagist.org/packages/jwage/php-apns)[ Docs](http://github.com/jwage/php-apns)[ RSS](/packages/jwage-php-apns/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

PHP APNS
========

[](#php-apns)

PHP Apple Push Notification Service Library

[![Build Status](https://camo.githubusercontent.com/92fe837fe3af4e9686f1c4e75dde6658c7a0d136dd38c71c6b48d48d2cba4049/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a776167652f7068702d61706e732e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/jwage/php-apns)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/9c9af24ed5bd9c6639d9752d76c0c59e666a7c1ce38d2d2338f33db2b072db5d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a776167652f7068702d61706e732f6261646765732f7175616c6974792d73636f72652e706e673f733d39386639323630663634383865643230643332643231313036646333343963316561633236613335)](https://scrutinizer-ci.com/g/jwage/php-apns/)[![Code Coverage](https://camo.githubusercontent.com/014438f065331b01f969d281f78029714aff63b317a2d4fc73b02f36732f0846/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a776167652f7068702d61706e732f6261646765732f636f7665726167652e706e673f733d63643530626163363064323639393335336230643966666566336237613161346636353638663730)](https://scrutinizer-ci.com/g/jwage/php-apns/)[![Latest Stable Version](https://camo.githubusercontent.com/1076c193bba7c41022fe041f3a74e0147185e1aa169f6e5dc007327366eab988/68747470733a2f2f706f7365722e707567782e6f72672f6a776167652f7068702d61706e732f762f737461626c652e706e67)](https://packagist.org/packages/jwage/php-apns)[![Total Downloads](https://camo.githubusercontent.com/73c4676653c6bf1905d787b44090fd71f218246e6e234a408836ed33eae07a81/68747470733a2f2f706f7365722e707567782e6f72672f6a776167652f7068702d61706e732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/jwage/php-apns)[![Dependency Status](https://camo.githubusercontent.com/25d056e769596b5d9486622ef94f611b7600f5f4b49f9860a285156862aff57b/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6a776167653a7068702d61706e732f312e302e302f62616467652e706e67)](https://www.versioneye.com/php/jwage:php-apns/1.0.0)

Install
-------

[](#install)

Install PHP APNS using composer:

```
composer require jwage/php-apns

```

Generate Safari Notification Package
------------------------------------

[](#generate-safari-notification-package)

```
use JWage\APNS\Certificate;
use JWage\APNS\Safari\PackageGenerator;

$certificate = new Certificate(file_get_contents('apns.p12'), 'certpassword');
$packageGenerator = new PackageGenerator(
    $certificate, '/base/pushPackage/path', 'yourdomain.com'
);

// returns JWage\APNS\Safari\Package instance
$package = $packageGenerator->createPushPackageForUser('userid');

// send zip file to the browser
echo $package->getZipPath();
```

Sending Notifications
---------------------

[](#sending-notifications)

```
use JWage\APNS\Certificate;
use JWage\APNS\Client;
use JWage\APNS\Sender;
use JWage\APNS\SocketClient;

$certificate = new Certificate(file_get_contents('apns.pem'));
$socketClient = new SocketClient($certificate, 'gateway.push.apple.com', 2195);
$client = new Client($socketClient);
$sender = new Sender($client);

$sender->send('devicetoken', 'Title of push', 'Body of push', 'http://deeplink.com');
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% 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 ~14 days

Total

3

Last Release

4514d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c4b569aa557436333fb02f55dfc0dacd6cb54c29820de24d9ad8a61cabb7716?d=identicon)[jwage](/maintainers/jwage)

---

Top Contributors

[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (11 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![teplyakoff](https://avatars.githubusercontent.com/u/1154075?v=4)](https://github.com/teplyakoff "teplyakoff (1 commits)")

---

Tags

notificationsappleapns

### Embed Badge

![Health badge](/badges/jwage-php-apns/health.svg)

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

###  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)[norkunas/onesignal-php-api

OneSignal API for PHP

2441.8M21](/packages/norkunas-onesignal-php-api)[apple/apn-push

Push notifications to Apple devices

1661.4M3](/packages/apple-apn-push)[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)
