PHPackages                             didublab/cookielaw - 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. didublab/cookielaw

ActiveSymfony-bundle

didublab/cookielaw
==================

A simple Symfony bundle to display a cookie law message.

1.1.0(5y ago)142MITPHPPHP ^7.2

Since Jun 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/SlicoHP/Didublab-CookielawBundle)[ Packagist](https://packagist.org/packages/didublab/cookielaw)[ RSS](/packages/didublab-cookielaw/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Symfony Didublab/CookielawBundle
================================

[](#symfony-didublabcookielawbundle)

This is a simple Symfony bundle to display a cookie law message on your **Symfony 4** and **Symfony 5** projects with small setup.

Install the bundle:
-------------------

[](#install-the-bundle)

Using composer

```
composer require didublab/cookielaw

```

Render the cookie law:
----------------------

[](#render-the-cookie-law)

In your twig, add the twig function where you want to load the cookie consent:

```
{{ cookie_law() }}
```

This is the minimum setup, but if you want more, you can configure a few options:

Configure options:
------------------

[](#configure-options)

Create a new config file in your config/packages/ directory, named for example: cookie\_law.yaml This are the available options with the default options:

```
didublab_cookielaw:
    cookie_name: cookie-notice-accepted #the cookie name
    cookie_value: true #the cookie value
    cookie_days: 10 #cookie expiration in days
    cookie_readmore_route: false #the route where you want to redirect the users to the "read more" section
```

Translations
------------

[](#translations)

You can translate the text of the cookie law at your needs

- Create inside the translations directory a file called cookielaw.(language).xliff
- Inside add the following content below and change the "target" tag with your translations

```

                didublab_cookielaw_cookie_text
                This website use cookies. By continuing to browse this website, you declare to accept the use of cookies.

                 didublab_cookielaw_cookie_accept
                 Accept

                 didublab_cookielaw_cookie_readmore
                 More info

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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 ~0 days

Total

2

Last Release

2171d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11733509?v=4)[Saverio](/maintainers/Slico)[@slico](https://github.com/slico)

---

Top Contributors

[![SlicoHP](https://avatars.githubusercontent.com/u/37446135?v=4)](https://github.com/SlicoHP "SlicoHP (3 commits)")

---

Tags

cookie-consentsymfonysymfony-bundlesymfony4symfony5

### Embed Badge

![Health badge](/badges/didublab-cookielaw/health.svg)

```
[![Health](https://phpackages.com/badges/didublab-cookielaw/health.svg)](https://phpackages.com/packages/didublab-cookielaw)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

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

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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