Registry / networking / edamov-pushok

edamov-pushok

JSON →
library0.19.1phppackagistunverified

PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key) or certificate-based authentication.

composer require edamov/pushok
INSTALL
IMPORT
SIG · EDAMOV-PUSHOK
E
edamov-pushok
networkingphpv0.19.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use Pushok\Client;

Create a client, build a payload, and send a push notification.

use Pushok\Client; use Pushok\Notification; use Pushok\Payload; $client = new Client(); $payload = Payload::create()->setAlert('Hello!'); $notification = new Notification($payload, 'device_token'); $client->addNotification($notification); $client->push();
Debug
Known issues
breakingRequires PHP 7.4+ and ext-curl with HTTP/2 support.
fix
Ensure your PHP version is 7.4 or higher and that cURL is compiled with HTTP/2 support.
affects: <0.19.1
Upgrade
Version history
0.19.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
edamov-pushok — pip install edamov-pushok · libregistry