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

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

kikwik/cookie-bundle
====================

Cookie banner for Symfony 5

v2.0.4(1mo ago)0511MITPHPPHP &gt;=7.2.5

Since Jul 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/kikwik/cookie-bundle)[ Packagist](https://packagist.org/packages/kikwik/cookie-bundle)[ RSS](/packages/kikwik-cookie-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (16)Versions (15)Used By (0)

KikwikCookieBundle
==================

[](#kikwikcookiebundle)

Cookie banner for Symfony 5+

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

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require kikwik/cookie-bundle
```

Update the database to create the kw\_cookie\_consent\_log table:

```
$ php bin/console make:migration
$ php bin/console doctrine:migrations:migrate
```

Configuration
-------------

[](#configuration)

Create the `config/packages/kikwik_cookie.yaml` config file and clear the cache

```
kikwik_cookie:
    cookie_prefix:      'kwc_consent'   # the prefix for the cookie name (default is kwc_consent)
    cookie_lifetime:    180             # number days after cookie expiration (default is 6 months)
    consent_version:    '1.0'           # consent version (change to invalidate old consents)
    privacy_policy:     'app_privacy'   # route or url for privacy policy (default is null)
    cookie_policy:      'app_cookie'    # route or url for cookie policy (default is null)
    categories:         [ ]             # list of available categories, example: [ 'functional', 'analytics', 'profiling', 'marketing' ]
    enable_consent_log: false           # save user consent in database (default is false)
    banner_classes:
        wrapper: 'position-fixed bottom-0 start-0 end-0 p-1 border-top border-3 bg-white'
        actionWrapper: 'float-md-end text-center'
        btnAccept: 'btn btn-sm btn-success my-1'
        btnDeny: 'btn btn-sm btn-danger my-1'
        btnChoose: 'btn btn-sm btn-warning my-1'
        btnPrivacy: 'm-1'
        btnCookie: 'm-1'

```

Import routes bundle in `config/routes/kikwik_cookie.yaml`:

```
kikwik_cookie_bundle:
    resource: '@KikwikCookieBundle/Resources/config/routes.xml'
    prefix: '/'
```

Copy translations file from `vendor/kikwik/cookie-bundle/src/Resources/translations/KikwikCookieBundle.xx.yaml` into `translations` directory to change banner text

Make a twig global variable in `config/packages/twig.yaml` to use ConsentManager in templates

```
twig:
    globals:
        cookieConsentManager:   '@Kikwik\CookieBundle\Service\ConsentManager'
```

```
    {% if cookieConsentManager.categoryAllowed('analytics') %}

            ...

    {% endif %}
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Recently: every ~26 days

Total

14

Last Release

46d ago

Major Versions

v1.0.8 → v2.0.02026-02-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58590255?v=4)[Kikwik](/maintainers/kikwik)[@kikwik](https://github.com/kikwik)

---

Top Contributors

[![kikwik](https://avatars.githubusercontent.com/u/58590255?v=4)](https://github.com/kikwik "kikwik (22 commits)")

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-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)[sylius/sylius

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

8.5k5.9M737](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)

PHPackages © 2026

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