定制 vouchedfor/consent-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vouchedfor/consent-bundle

Composer 安装命令:

composer require vouchedfor/consent-bundle

包简介

Provides support for email opt-in/out consent management via DynamoDb

README 文档

README

Provides a mechanism for managing email consent via AWS DynamoDb

Installation

Install it with composer:

composer require vouchedfor/consent-bundle:dev-master

Then, add the following in your AppKernel bundles:

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        ...
        new VouchedFor\ConsentBundle\VouchedForConsentBundle(),
        ...
    );
    ...
}

Add the name of the consent table in DynamoDB to config.yml. For example:

// app/config/config.yml
vouched_for_consent:
    table_name: consent
    password: secretpasswordforemailencryption

Example Usage

    $consentHandler = $this->get('vouchedfor_consent');

    $encryptedEmail = $consentHandler->encrypt('info@test.com');
    
    $services = [
        'marketing_emails': true,
        'service_emails': true,
        'third_party_emails: false
    ];

    $consentHandler->update($encryptedEmail, '2018-01-03 12:30:12', $services);

License

The Consent Bundle is free to use and is licensed under the MIT license

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-21