2017 © Pedro Peláez
 

library laravel-dotmailer

Laravel wrapper for the dotmailer-api-v2-client library (https://github.com/romanpitak/dotmailer-api-v2-client)

image

industrious-mouse/laravel-dotmailer

Laravel wrapper for the dotmailer-api-v2-client library (https://github.com/romanpitak/dotmailer-api-v2-client)

  • Wednesday, October 28, 2015
  • by industrious-mouse
  • Repository
  • 3 Watchers
  • 7 Stars
  • 326 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Laravel Dotmailer

A very basic Laravel wrapper for the Dotmailer API Client by romanpitak., (*1)

Installation

To install, inside your project directory run the following from your terminal:, (*2)

composer require industrious-mouse/laravel-dotmailer

Then load the service provider in your config/app.php:, (*3)

IndustriousMouse\LaravelDotmailer\LaravelDotmailerServiceProvider::class

You'll also need to publish the config, so you can provide your keys:, (*4)

php artisan vendor:publish --provider="IndustriousMouse\LaravelDotmailer\LaravelDotmailerServiceProvider"

Examples

Adding a Contact with custom data fields.

$contact_data = new ApiContact([
    'email'         => 'test@test.com',
    'emailType'     => 'Html',
    'dataFields'    => [
        [
            'key' => 'FIRSTNAME',
            'value' => 'Name'
        ]
    ]
]);

try
{
    $contact = Dotmailer::PostContacts($contact_data);
}
catch (Exception $e)
{
    return $e;
}

Sending a Campaign to a contact

$contact_id = 12345;
$campaign_id = 12345;

$data = [
    'CampaignId'        => $campaign_id,
    'ContactIds'        => [
        $contact_id
    ]
];

$send = Dotmailer::PostCampaignsSend(new ApiCampaignSend($data));

try
{
    $contact = Dotmailer::PostContacts($contact_data);
}
catch (Exception $e)
{
    return $e;
}

The Versions

28/10 2015

dev-master

9999999-dev

Laravel wrapper for the dotmailer-api-v2-client library (https://github.com/romanpitak/dotmailer-api-v2-client)

  Sources   Download

MIT

The Requires

 

28/10 2015

0.2.1

0.2.1.0

Laravel wrapper for the dotmailer-api-v2-client library (https://github.com/romanpitak/dotmailer-api-v2-client)

  Sources   Download

MIT

The Requires

 

27/10 2015

0.2

0.2.0.0

Laravel wrapper for the dotmailer-api-v2-client library (https://github.com/romanpitak/dotmailer-api-v2-client)

  Sources   Download

MIT

The Requires

 

20/11 2014

0.1

0.1.0.0

Laravel wrapper for the php-dotmailer library (https://github.com/industrious-mouse/php-dotmailer)

  Sources   Download

The Requires