signalgridco/signalgrid-php
最新稳定版本:v1.0.0
Composer 安装命令:
composer require signalgridco/signalgrid-php
包简介
Official PHP client for the Signalgrid API
README 文档
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
)
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-31