divergentsoft / apns-php
PHP library for sending iOS remote push notifications
0.1.10
2016-07-27 13:37 UTC
Requires
- monolog/monolog: ^1.17
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2024-04-23 01:19:30 UTC
README
Library used to send APNS push notifications from PHP.
Example usage:
$tokens = ["APNS token from device",...]; $message = new Message(); $message->initialize($tokens); $message->setAlert("Thunderstorms predicted in your area"); $push = new Push(); $push->connect(false,'cert.pem'); $push->send($message); // Get a list of failed tokens to remove for next time $push->getFailedTokens();