承接 sendstreak/sendstreak-php 相关项目开发

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

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

sendstreak/sendstreak-php

最新稳定版本:1.0.1

Composer 安装命令:

composer require sendstreak/sendstreak-php

包简介

SendStreak client for PHP

README 文档

README

SendStreak is a simple interface that lets you integrate quickly with email services such as Mailchimp, Sendgrid or even AWS SES or Gmail to decouple your audience, email history and templates from your email provider.

Installation

$ composer require sendstreak/sendstreak-php

Usage

$client = new SendStreak\SendStreakPhp\SendStreakClient("YOUR_API_KEY");

$contact = new SendStreak\SendStreakPhp\Contact(
    "johndoe@example.com", 
    [
        'firstName' => 'John',
        'lastName' => 'Doe',
        'onboarded' => false
    ]
);
// Push your contacts to SendStreak with as many attributes as you want
$client->updateContact($contact);

// Send them emails using predefined templates
$client->sendMail(
    "johndoe@example.com",
    "customer-welcome-email",
    [
        'username' => 'johndoe'
    ]
);

// You can also do the same asynchronously
$client->updateContactAsync($contact);

$client->sendMailAsync(
    "johndoe@example.com",
    "customer-welcome-email",
    [
        'username' => 'johndoe'
    ]
);

We accept contributions here

If you're a PHP developer using SendStreak and want to contribute to this SDK, we're more than happy to have your pull request here - and your name on the hall of fame forever!

Hall of fame

13.07.2023 lonewolf - Initial version of SendStreak PHP SDK

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-27