定制 skrybe/sdk-php 二次开发

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

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

skrybe/sdk-php

最新稳定版本:v1.0.0

Composer 安装命令:

composer require skrybe/sdk-php

包简介

PHP SDK for Skrybe Email Newsletter Service

README 文档

README

A PHP SDK for interacting with the Skrybe Email Newsletter Service. This SDK provides a simple and elegant way to integrate email newsletter functionality into your PHP applications.

Requirements

  • PHP 7.4 or higher
  • Composer
  • GuzzleHttp 7.0 or higher
  • PSR-3 compatible logger (optional)

Installation

  1. Install via Composer:
composer require skrybe/sdk-php
  1. (Optional) Install Monolog for logging:
composer require monolog/monolog

Usage

use Skrybe\SkrybeSDK;

$sdk = new SkrybeSDK('your-api-key');

// Send an email
$response = $sdk->sendEmail([
    'fromName' => 'John Doe',
    'fromEmail' => 'john@example.com',
    'replyTo' => 'reply@example.com',
    'subject' => 'Hello World',
    'htmlText' => '<h1>Hello World</h1>',
    'to' => ['user@example.com']
]);

// Get lists
$lists = $sdk->getLists();

// Create a campaign
$campaign = $sdk->createCampaign([
    'fromName' => 'John Doe',
    'fromEmail' => 'john@example.com',
    'replyTo' => 'reply@example.com',
    'title' => 'My Campaign',
    'subject' => 'Hello World',
    'htmlText' => '<h1>Hello World</h1>',
    'listIds' => ['list-id-1', 'list-id-2']
]);

Available Methods

Email Operations

  • sendEmail(array $options) - Send an email to recipients
  • createCampaign(array $options) - Create an email campaign
  • getLists(bool $includeHidden = false) - Get all mailing lists

Documentation

For detailed documentation, please see the docs directory.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-05-29