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
Requires
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
Requires (Dev)
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
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
- Add component to your config file
'components' => [ // ... 'emarsys' => [ 'class' => 'magicalella\emarsys\Emarsys', 'client_id' => 'xxxxxx', 'client_secret' => 'xxxxxx', 'endpoint_autentication' => 'xxxxxx', 'endpoint_api' => 'xxxxxx' ], ]
- Add new contact to EMARSYS
$emarsys = Yii::$app->emarsys; $result = $emarsys->post('getdata/set-customers',$data) );