signalgridco/signalgrid-php

Official PHP client for the Signalgrid API

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/signalgridco/signalgrid-php

v1.0.0 2025-12-31 13:05 UTC

This package is auto-updated.

Last update: 2025-12-31 14:22:01 UTC


README

Latest Version on Packagist

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
)