Download the PHP package industrious-mouse/laravel-dotmailer without Composer
On this page you can find all versions of the php package industrious-mouse/laravel-dotmailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download industrious-mouse/laravel-dotmailer
More information about industrious-mouse/laravel-dotmailer
Files in industrious-mouse/laravel-dotmailer
Download industrious-mouse/laravel-dotmailer
More information about industrious-mouse/laravel-dotmailer
Files in industrious-mouse/laravel-dotmailer
Vendor industrious-mouse
Package laravel-dotmailer
Short Description Laravel wrapper for the dotmailer-api-v2-client library (https://github.com/romanpitak/dotmailer-api-v2-client)
License MIT
Package laravel-dotmailer
Short Description Laravel wrapper for the dotmailer-api-v2-client library (https://github.com/romanpitak/dotmailer-api-v2-client)
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-dotmailer
Laravel Dotmailer
A very basic Laravel wrapper for the Dotmailer API Client by romanpitak.
Installation
To install, inside your project directory run the following from your terminal:
composer require industrious-mouse/laravel-dotmailer
Then load the service provider in your config/app.php:
IndustriousMouse\LaravelDotmailer\LaravelDotmailerServiceProvider::class
You'll also need to publish the config, so you can provide your keys:
php artisan vendor:publish --provider="IndustriousMouse\LaravelDotmailer\LaravelDotmailerServiceProvider"
Examples
Adding a Contact with custom data fields.
$contact_data = new ApiContact([
'email' => '[email protected]',
'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;
}
All versions of laravel-dotmailer with dependencies
PHP Build Version
Package Version
The package industrious-mouse/laravel-dotmailer contains the following files
Loading the files please wait ....