Skip to content

sendstreak/sendstreak-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SendStreak PHP SDK

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages