PHPackages                             sskaje/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. [HTTP &amp; Networking](/categories/http)
4. /
5. sskaje/apns

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sskaje/apns
===========

sskaje's APNS client and proxy

302PHP

Since Aug 26Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\#APNS

simple apns client class &amp; apns proxy class

Author: sskaje ()

\##Files /class Source folder /apns.inc.php Init file for APNS /apns.class.php APNS class /message.class.php APNS Message class /proxy.class.php APNS Proxy class /proxy\_client.class.php APNS Proxy client class /daemon Daemon class folder /default.daemon.php Default daemon /simple.daemon.php Simple daemon /api.php Http api script /daemon.php Daemon script /test Test scripts /test.php APNS test script /test\_proxy\_client.php APNS Proxy client test script /proxy.example.ini Example configuration file /README.md this file

\##Dependencies php 5.3+ php-openssl redis server phpredis

\##Examples ###clients

```
>curl 'http://apns.rst.im/api.php?provider=example&user=sskaje&pass=zzddff' -d 'json=[{"token":"xxx","message":{"aps":{"alert":{"body":"你好，地球人"}}}}]'
>curl 'http://apns.rst.im/api.php?provider=example&user=sskaje&pass=zzddff' -d @1.json
>cat 1.json
json=[{"token":"token","message":{"aps":{"alert":{"body":"aaa"}}}},{"token":"token","message":{"aps":{"alert":{"body":"adaa"}}}},{"token":"token","message":{"aps":{"alert":{"body":"aaa"}}}},{"token":"token","message":{"aps":{"alert":{"body":"affaa"}}}}]

```

\###server add following to crontab

```
*/1 * * * * /path/to/php/binary /path/to/daemon.php

```

\##Configurations copy proxy.example.ini to proxy.ini

\##For developers ###Create new daemon implementation add your own daemon configuration like

```
[daemon:YOUR_DAEMON_NAME]
key1=val1
key2=val2

```

create new file YOUR\_DAEMON\_NAME.php in class/daemon/ define a new class

```
spAPNSProxyDaemon_YOUR_DAEMON_NAME extends spAPNSProxyDaemon
{
    protected $daemon_name = 'YOUR_DAEMON_NAME';
    protected $defaults    = array(
        'key1'    =>    default_val1,
        ...
    );
    public function daemon()
    {
        # implement your daemon here
    }
}

```

\###EOF

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0dbe9955efa3afbd9ac7ddd90d5b8399495ad0c545eede3e4e8f3c85287da01f?d=identicon)[sskaje](/maintainers/sskaje)

---

Top Contributors

[![sskaje](https://avatars.githubusercontent.com/u/208950?v=4)](https://github.com/sskaje "sskaje (22 commits)")[![autohello](https://avatars.githubusercontent.com/u/16753415?v=4)](https://github.com/autohello "autohello (1 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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