2017 © Pedro Peláez
 

yii2-extension yii2-newsletter-mailup

Newsletter module to Yii2 - mailup integration

image

grptx/yii2-newsletter-mailup

Newsletter module to Yii2 - mailup integration

  • Thursday, January 25, 2018
  • by grptx
  • Repository
  • 1 Watchers
  • 0 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

yii2-newsletter-mailup

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Newsletter module to Yii2 - mailup integration, (*2)

with this module you can collect email address and store in the mailup newsletter service, (*3)

Installation

Preferred way to install is through Composer:, (*4)

php composer.phar require grptx/yii2-newsletter-mailup:^1.0

Or, you may add, (*5)

"grptx/yii2-newsletter-mailup": "^1.0"

to the require section of your composer.json file and execute php composer.phar update., (*6)

Configuration

...
'modules' => [
    'newsletter' => [
        'class' => 'grptx\newsletter\mailup\Module',
        'client_id'=>'<your-client-id>',
        'client_secret'=>'<your-client-secret>',
        'callback_uri'=>'http://127.0.0.1/index.php',
        'username'=>'<your-username>',
        'password'=>'<your-password>',
        'group'=><your-recipents-group>,
    ],
...
]

Usage

Go to your application in your browser * http://localhost/pathtoapp/newsletter * Or you can use an ajax call:, (*7)

$.ajax({
    method:'post',
    url:'/newsletter/default/ajax-call',
    data:{
        email:'email',
        first_name:'first_name',
        last_name:'last_name'
    },
    success:function(data) {
        console.log(data);
        if(data[result]=='ok') {
            console.log('success');
        } else if(data['error']) {
            console.log(data['error']);            
        } else {
            console.log('generic error');
        }
    },
    error:function(data) {
        console.log(data);
    }
});

The Versions

25/01 2018

dev-master

9999999-dev

Newsletter module to Yii2 - mailup integration

  Sources   Download

MIT

The Requires

 

by Avatar grptx

newsletter yii2 mailup yii2-components

25/01 2018

v2.0.2

2.0.2.0

Newsletter module to Yii2 - mailup integration

  Sources   Download

MIT

The Requires

 

by Avatar grptx

newsletter yii2 mailup yii2-components

23/01 2018

v2.0.1

2.0.1.0

Newsletter module to Yii2 - mailup integration

  Sources   Download

MIT

The Requires

 

by Avatar grptx

newsletter yii2 mailup yii2-components

23/01 2018

v2.0.0

2.0.0.0

Newsletter module to Yii2 - mailup integration

  Sources   Download

MIT

The Requires

 

by Avatar grptx

newsletter yii2 mailup yii2-components

30/11 2017

v1.1.1

1.1.1.0

Newsletter module to Yii2 - mailup integration

  Sources   Download

MIT

The Requires

 

by Avatar grptx

newsletter yii2 mailup yii2-components

30/11 2017

v1.1.0

1.1.0.0

Newsletter module to Yii2 - mailup integration

  Sources   Download

MIT

The Requires

 

by Avatar grptx

newsletter yii2 mailup yii2-components

12/09 2017

v1.0.1

1.0.1.0

Newsletter module to Yii2 - mailup integration

  Sources   Download

MIT

The Requires

 

by Avatar grptx

newsletter yii2 mailup yii2-components