signalgridco / signalgrid-php
Official PHP client for the Signalgrid API
v1.0.0
2025-12-31 13:05 UTC
Requires
- php: >=8.1
This package is auto-updated.
Last update: 2026-03-07 13:16:17 UTC
README
Official PHP client for the Signalgrid push-notification API.
Installation
composer require signalgridco/signalgrid-php
Example
require __DIR__ . '/vendor/autoload.php'; use Signalgrid\Client; use Signalgrid\Exception; try { $client = new Client('YOUR_CLIENT_KEY'); $response = $client->send([ 'channel' => 'CHANNEL_TOKEN', 'type' => 'info', 'title' => 'Hello from PHP', 'body' => 'This notification was sent using the Signalgrid PHP client.', 'critical' => false ]); print_r($response); } catch (Exception $e) { echo $e->getMessage(); }
Response
Array
(
[ruuid] => 356b625e6ae18f8f2c5381633bc90028acbb119c
[text] => OK
[code] => 200
[node] => dp02
[time] => 360ms
[remaining] => 99919
)