PHPackages                             leblanc-simon/eu-cookie-law-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. leblanc-simon/eu-cookie-law-bundle

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

leblanc-simon/eu-cookie-law-bundle
==================================

Add the cookie div explanation according to EU law

0.9.2(9y ago)1022.8k5[3 issues](https://github.com/leblanc-simon/eu-cookie-law-bundle/issues)[1 PRs](https://github.com/leblanc-simon/eu-cookie-law-bundle/pulls)MITPHPPHP &gt;=5.5.9

Since Mar 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/leblanc-simon/eu-cookie-law-bundle)[ Packagist](https://packagist.org/packages/leblanc-simon/eu-cookie-law-bundle)[ RSS](/packages/leblanc-simon-eu-cookie-law-bundle/feed)WikiDiscussions master Synced 4w ago

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

EUCookieLawBundle
=================

[](#eucookielawbundle)

Description
-----------

[](#description)

this bundle allow you to add the information message for your users about the cookies. It's a requirement since the [ePrivacy directive](http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm#section_2)

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

[](#installation)

- install the bundle

```
composer require leblanc-simon/eu-cookie-law-bundle
```

- activate the bundle

```
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new LeblancSimon\EUCookieLawBundle\LeblancSimonEUCookieLawBundle(),
        ];
    }
}
```

Nothing else to do. The HTML will be automatically injected for the text/html response.

Customization
-------------

[](#customization)

### Message

[](#message)

The message and text button can be customized via translation. Add a `Resources/translations/EUCookieLaw.[locale].yml` in your project and customize your text.

```
cookie_law:
    message: |
        Afin de vous proposer le meilleur service possible, ce site utilise des cookies.
        En acceptant de continuer sur ce site, vous déclarer accepter leur utilisation.
    accept: J'accepte
    read_more: Voir plus
```

### Design

[](#design)

to override the design, use id in your CSS files :

```
#eu-cookie-law {

}
#eu-cookie-law-accept {

}
```

### Configuration

[](#configuration)

you can customized the bundle with a configuration :

```
leblanc_simon_eu_cookie_law:
    # The name of the cookie use to know if the user is agree
    cookie_name: eu_cookie_law
    # The value of the cookie use to know if the user is agree
    cookie_value: accept
    # The template use to show the message
    template: 'LeblancSimonEUCookieLawBundle::eu_cookie_law.html.twig'
    # The name of route to be open
    read_more_link: name_to_route
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~0 days

Total

2

Last Release

3397d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fc78f90d0b6d0192015d2262e2d8349c17a46b28c23f0f8ea9f0399ebf8d038?d=identicon)[leblanc-simon](/maintainers/leblanc-simon)

---

Top Contributors

[![leblanc-simon](https://avatars.githubusercontent.com/u/605746?v=4)](https://github.com/leblanc-simon "leblanc-simon (4 commits)")[![migmolrod](https://avatars.githubusercontent.com/u/5715026?v=4)](https://github.com/migmolrod "migmolrod (1 commits)")[![poohia](https://avatars.githubusercontent.com/u/17701613?v=4)](https://github.com/poohia "poohia (1 commits)")

---

Tags

cookie-consentcookie-lawsymfonysymfony-bundle

### Embed Badge

![Health badge](/badges/leblanc-simon-eu-cookie-law-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/leblanc-simon-eu-cookie-law-bundle/health.svg)](https://phpackages.com/packages/leblanc-simon-eu-cookie-law-bundle)
```

###  Alternatives

[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.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[yceruto/formflow-bundle

Create and manage multistep forms

2414.8k](/packages/yceruto-formflow-bundle)

PHPackages © 2026

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