2017 © Pedro Peláez
 

yii2-extension yii2-mailmaster

Yii2 wrapper class for MailMaster API

image

albertborsos/yii2-mailmaster

Yii2 wrapper class for MailMaster API

  • Sunday, October 4, 2015
  • by albertborsos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-mailmaster

MailMaster API wrapper for Yii2 projects, (*1)

How to config in your project

  'components' => [
    ...
    'mailmaster' => [
          'class' => 'albertborsos\mailmaster\MailMaster',
          'apiUser' => 'mailmaster-api-user-name',
          'apiKey' => 'mailmaster-api-password',
          'forms' => [
              'your-form-id' =>[
                  'formID' => 'mailmaster-form-id',
                  'listID' => 'mailmaster-list-id',
              ],
          ],
    ],
    ...
  ],
...

How to handle after form submit

  /** @var \albertborsos\mailmaster\MailMaster $mmc */
  $mmc = Yii::$app->mailmaster;
  $mm = $mmc->factory($this->_listID, $this->_formID);

  $response = $mm->subscribe([
      'email' => $this->email,
      'mssys_firstname' => $this->nameFirst,
      'mssys_lastname' => $this->nameLast,
  ]);

The Versions

04/10 2015

dev-master

9999999-dev

Yii2 wrapper class for MailMaster API

  Sources   Download

BSD-3-Clause

The Requires

 

api extension yii2 mailmaster

04/10 2015

v0.0.1

0.0.1.0

Yii2 wrapper class for MailMaster API

  Sources   Download

BSD-3-Clause

The Requires

 

api extension yii2 mailmaster