承接 appricos/pushinator-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

appricos/pushinator-php

最新稳定版本:v1.0.0

Composer 安装命令:

composer require appricos/pushinator-php

包简介

A PHP client for the Pushinator API

README 文档

README

A PHP Composer package that enables developers to send push notifications seamlessly through the Pushinator API.

Installation

Install the package using Composer:

composer require appricos/pushinator-php

Make sure Composer's autoloader is included in your project:

require 'vendor/autoload.php';

Usage

Initializing the Client

To start using the PushinatorClient, create an instance by passing your API token:

use Pushinator\PushinatorClient;

$client = new PushinatorClient('PUSHINATOR_API_TOKEN');

Sending Notifications

To send a notification to a specific channel, use the sendNotification method. Provide your channel ID and the notification content as arguments:

use Pushinator\PushinatorClient;

$client = new PushinatorClient('PUSHINATOR_API_TOKEN');

try {
    $client->sendNotification('PUSHINATOR_CHANNEL_ID', 'Hello from PHP!');
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}

统计信息

  • 总下载量: 217
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-08