grptx/yii2-newsletter-mailup 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

grptx/yii2-newsletter-mailup

Composer 安装命令:

composer require grptx/yii2-newsletter-mailup

包简介

Newsletter module to Yii2 - mailup integration

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Newsletter module to Yii2 - mailup integration

with this module you can collect email address and store in the mailup newsletter service

Installation

Preferred way to install is through Composer:

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

Or, you may add

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

to the require section of your composer.json file and execute php composer.phar update.

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:
$.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);
    }
});

统计信息

  • 总下载量: 75
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固