cinghie/yii2-elasticemail

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

Installs: 311

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

pkg:composer/cinghie/yii2-elasticemail

0.1.2 2019-04-14 15:50 UTC

This package is auto-updated.

Last update: 2025-10-08 14:23:01 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();