cinghie/yii2-elasticemail

Yii2 Elasticemail to manage Elasticemail Email Platform in a Yii2 site.

0.1.2 2019-04-14 15:50 UTC

This package is auto-updated.

Last update: 2024-11-08 12:07:46 UTC


README

License Latest Stable Version Latest Release Date Latest Commit Total Downloads

Yii2 Elasticemail extension to manage the Elastice Email Marketing Platform:

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require cinghie/yii2-elasticemail "*"

or add

"cinghie/yii2-elasticemail": "*"

Configuration

Set on your configuration file


use cinghie\elasticemail\components\Elasticemail as ElasticemailComponent;

'components' => [ 
    
    'elasticemail' => [
        'class' => ElasticemailComponent::class,
        'apiUrl' => 'https://api.elasticemail.com/v2/',
        'apiKey' => 'YOUR_ELASTICEMAIL_API_KEY'
    ],
    
]

Usage

\Yii::$app->elasticemail;
\Yii::$app->elasticemail->getClient();
\Yii::$app->elasticemail->getAccessTokens();
\Yii::$app->elasticemail->getAccount();
\Yii::$app->elasticemail->getCampaigns();
\Yii::$app->elasticemail->getChannels();
\Yii::$app->elasticemail->getContacts();
\Yii::$app->elasticemail->getDomains();
\Yii::$app->elasticemail->getEelists();
\Yii::$app->elasticemail->getTemplates();