sendstreak / sendstreak-php
该软件包的最新版本(v1.0.0)没有提供许可证信息。
v1.0.0
2023-04-27 18:12 UTC
Requires
- guzzlehttp/guzzle: 7.0
- psr/log: ~1.0
This package is not auto-updated.
Last update: 2024-09-28 00:07:29 UTC
README
SendStreak 是一个简单易用的界面,让您能够快速集成电子邮件服务,如Mailchimp、Sendgrid,甚至AWS SES或Gmail,从而将您的受众、电子邮件历史和模板与电子邮件提供商解耦。
安装
$ composer require sendstreak/sendstreak-php
用法
$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' ] );
我们在此接受贡献
如果您是使用SendStreak的PHP开发者并希望为此SDK做出贡献,我们将非常乐意接收您的拉取请求——并让您的名字永远留在荣誉榜上!
荣誉榜
2023年7月13日 lonewolf - SendStreak PHP SDK的初始版本