PHPackages                             ekyna/cookie-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. ekyna/cookie-consent-bundle

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

ekyna/cookie-consent-bundle
===========================

Cookie consent (GDPR)

0.9.x-dev(3y ago)22.0k1MITPHPPHP &gt;=8.1

Since Nov 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ekyna/CookieConsentBundle)[ Packagist](https://packagist.org/packages/ekyna/cookie-consent-bundle)[ Docs](https://github.com/ekyna/CookieConsentBundle)[ RSS](/packages/ekyna-cookie-consent-bundle/feed)WikiDiscussions 0.7 Synced today

READMEChangelogDependencies (5)Versions (3)Used By (1)

CookieConsentBundle
===================

[](#cookieconsentbundle)

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

[](#installation)

```
composer require ekyna/cookie-consent-bundle

```

#### Register bundle and routes

[](#register-bundle-and-routes)

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        // ...
        new Ekyna\Bundle\CookieConsentBundle\EkynaCookieConsentBundle(),
    ];
    // ...
}
```

```
# app/config/routing.yml
ekyna_cookie_consent:
    resource: "@EkynaCookieConsentBundle/Resources/config/routing.yaml"
```

#### Use twig functions

[](#use-twig-functions)

```
{# base.html.twig #}

  {# ... #}

  {% block javascripts %}
    {# Renders the cookie consent widget (if not yet consented) #}
    {{ ekyna_cookie_consent_render() }}

    {# Check if cookie category has user consent ('analytic', 'marketing' or 'social_network') #}
    {% if ekyna_cookie_consent_category_allowed('analytic') %}

    {% endif %}
  {% endblock javascripts %}

```

*ekyna\_cookie\_consent\_render()* options with their default values:

```
{{ ekyna_cookie_consent_render({
    render_if_saved: false, // Whether to render even if consent has been saved.
    expanded: false,        // Whether to show settings
    dialog: true            // Whether to render as a dialog/popup
}) }}
```

#### Configuration

[](#configuration)

Available configuration with default values.

```
# app/config/config.yml
ekyna_cookie_consent:
    name: Cookie_Content   # The consent cookie name
    read_more_route: ~     # Route name to your privacy policy page
    position: centered     # Widget positioning ('centered' or 'bottom-right')
    categories:            # Cookies categories the user has to consent
        - analytic
        - marketing
        - social_network
    persist: true          # Whether to persist user consent
```

TODO
----

[](#todo)

- Encrypt cookie consent entity's **IP** property.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~293 days

Total

3

Last Release

1459d ago

PHP version history (3 changes)0.7.x-devPHP &gt;=7.2

0.8.x-devPHP &gt;=7.4

0.9.x-devPHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3483641?v=4)[Etienne Dauvergne](/maintainers/ekyna)[@ekyna](https://github.com/ekyna)

---

Top Contributors

[![ekyna](https://avatars.githubusercontent.com/u/3483641?v=4)](https://github.com/ekyna "ekyna (10 commits)")

---

Tags

symfonybundlecommerce

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k13](/packages/2lenet-crudit-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M733](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)

PHPackages © 2026

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