2017 © Pedro Peláez
 

symfony-bundle consent-bundle

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

image

vouchedfor/consent-bundle

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

  • Wednesday, May 30, 2018
  • by vouchedfor
  • Repository
  • 6 Watchers
  • 1 Stars
  • 54 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 116 % Grown

The README.md

ConsentBundle

Provides a mechanism for managing email consent via AWS DynamoDb, (*1)

Installation

Install it with composer:, (*2)

composer require vouchedfor/consent-bundle:dev-master

Then, add the following in your AppKernel bundles:, (*3)

// 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:, (*4)

// 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, (*5)

The Versions

30/05 2018

dev-master

9999999-dev https://github.com/vouchedfor/ConsentBundle

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

  Sources   Download

MIT

The Requires

 

The Development Requires