magicalella/yii2-emarsys

EMARSYS component for Yii 2 framework

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1 2024-12-20 15:00 UTC

This package is auto-updated.

Last update: 2025-01-07 18:00:56 UTC


README

Emarsys component for Yii 2 framework

Installation

The preferred way to install this extension is through composer.

Run

composer require "magicalella/yii2-emarsys" "*"

or add

"magicalella/yii2-emarsys": "*"

to the require section of your composer.json file.

Usage

  1. Add component to your config file
'components' => [
    // ...
    'emarsys' => [
        'class' => 'magicalella\emarsys\Emarsys',
        'client_id' => 'xxxxxx',
        'client_secret' => 'xxxxxx',
        'endpoint_autentication' => 'xxxxxx',
        'endpoint_api' => 'xxxxxx'
    ],
]
  1. Add new contact to EMARSYS
$emarsys = Yii::$app->emarsys;
$result = $emarsys->post('getdata/set-customers',$data)
);