PHPackages                             vouchedfor/consent-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vouchedfor/consent-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

vouchedfor/consent-bundle
=========================

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

14.9k↓34.1%[4 PRs](https://github.com/vouchedfor/ConsentBundle/pulls)PHPCI passing

Since Jan 25Pushed 3mo ago8 watchersCompare

[ Source](https://github.com/vouchedfor/ConsentBundle)[ Packagist](https://packagist.org/packages/vouchedfor/consent-bundle)[ RSS](/packages/vouchedfor-consent-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

ConsentBundle
=============

[](#consentbundle)

Provides a mechanism for managing email consent via AWS DynamoDb

Installation
------------

[](#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
-------------

[](#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
-------

[](#license)

The Consent Bundle is free to use and is licensed under the [MIT license](http://www.opensource.org/licenses/mit-license.php)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance53

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5d068e6d5363f44158d31dce2809bce36f0fb52812485846ba7595dd1c61069?d=identicon)[vouchedfor](/maintainers/vouchedfor)

---

Top Contributors

[![jonathanstidwillvf](https://avatars.githubusercontent.com/u/14923116?v=4)](https://github.com/jonathanstidwillvf "jonathanstidwillvf (24 commits)")[![rajatvouchedfor](https://avatars.githubusercontent.com/u/50362717?v=4)](https://github.com/rajatvouchedfor "rajatvouchedfor (7 commits)")[![hempun](https://avatars.githubusercontent.com/u/72751746?v=4)](https://github.com/hempun "hempun (3 commits)")[![kcharcast](https://avatars.githubusercontent.com/u/13119988?v=4)](https://github.com/kcharcast "kcharcast (3 commits)")[![imola-kadar-vouchedfor](https://avatars.githubusercontent.com/u/82655599?v=4)](https://github.com/imola-kadar-vouchedfor "imola-kadar-vouchedfor (1 commits)")[![vouchedfor-admin](https://avatars.githubusercontent.com/u/8861139?v=4)](https://github.com/vouchedfor-admin "vouchedfor-admin (1 commits)")

### Embed Badge

![Health badge](/badges/vouchedfor-consent-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/vouchedfor-consent-bundle/health.svg)](https://phpackages.com/packages/vouchedfor-consent-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
