定制 pingram/php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

pingram/php

最新稳定版本:1.0.6

Composer 安装命令:

composer require pingram/php

包简介

Official PHP SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more

README 文档

README

Official PHP SDK for Pingram. Send notifications via Email, SMS, Push, In-App, and more from your PHP application.

Requirements

Installation

composer require pingram/php

Or add to your composer.json:

{
  "require": {
    "pingram/php": "^0.1"
  }
}

Then run composer install.

Quick start

Use the Pingram\Client with your API key, then call send() or the namespaced APIs (getDomains(), getSender(), etc.).

<?php

require_once __DIR__ . '/vendor/autoload.php';

use Pingram\Client;
use Pingram\Model\SenderPostBody;

$client = new Client('pingram_sk_...');

// Send a notification (delegates to the default/sender API)
$body = new SenderPostBody([
    'notification_id' => 'your_notification_id',
    'to' => ['id' => 'user_123'],
]);
$response = $client->send($body);

// Or use namespaced APIs: $client->getDomains(), $client->getSender(), etc.
// $senders = $client->getDomains()->domainsListDomains();

You can override the base URL by passing a second argument: new Client('pingram_sk_...', 'https://api.example.com').

What can I call?

  • $client->send($body) – send a notification (high-level).
  • $client->getDomains(), $client->getSender(), $client->getAccount(), etc. – low-level API objects. Each has methods matching the API (e.g. domainsListDomains, senderTestEmail).

For the full list of methods on each API, see the package's API_REFERENCE.md or the documentation.

Links

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固