PHPackages                             twin-elements/gdpr-cookies-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. twin-elements/gdpr-cookies-bundle

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

twin-elements/gdpr-cookies-bundle
=================================

GDPR cookies for CMS

v2.0.1(2y ago)0192MITPHPPHP ^8.0

Since Oct 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/twin-elements/gdpr-cookies-bundle)[ Packagist](https://packagist.org/packages/twin-elements/gdpr-cookies-bundle)[ RSS](/packages/twin-elements-gdpr-cookies-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

1.Install

`composer require twin-elements/gdpr-cookies-bundle`

2.in routing.yaml file

```
gdpr_cookies:
    resource: "@TwinElementsGDPRCookiesBundle/Controller/"
    prefix: /
    type: annotation
    requirements:
        _locale: '%app_locales%'
    defaults:
        _locale: '%locale%'
        _admin_locale: '%admin_locale%'
    options: { i18n: false }

```

3.In bundles.php file

```
TwinElements\GDPRCookiesBundle\TwinElementsGDPRCookiesBundle::class => ['all' => true],

```

4. Configuration If you have created route "cookies\_policy" leave package settings (config/packages/twin\_elements\_gdpr\_cookies.yaml) unchanged

```
twin_elements_gdpr_cookies: ~

```

If you want to change the default route to your own, enter it in the package configuration

```
twin_elements_gdpr_cookies:
    cookies_policy_route: your_route_name

```

in `webpack.config.js` create alias for root dir:

```
const rootDir = path.resolve(__dirname, '');

Encore
    .setOutputPath('public/build/')
    .setPublicPath('/build')
    .addEntry('common', './assets/js/app.js')
;

const frontConfig = Encore.getWebpackConfig();
frontConfig.resolve.alias['root-dir'] = rootDir;
frontConfig.name = 'frontConfig';

Encore.reset();

```

Import `cookies.js`

`import 'root-dir/public/bundles/twinelementsgdprcookies/js/cookies';`

\##How it use?

For marketing codes

`{% if isMarketingAccepted() %}{% endif %}`

Form analytics codes

`{% if isAnalyticsAccepted() %}{% endif %}`

In base template add

``

To overwrite translations, create a `cookies.LOCALE.yaml` file and enter your own translations

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~171 days

Total

11

Last Release

814d ago

Major Versions

v1.1.3 → v2.0.02023-09-08

PHP version history (3 changes)v1.0.0PHP ^7.1.3

v1.1.2PHP ^7.1 || ^8.0

v2.0.1PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![twin-elements](https://avatars.githubusercontent.com/u/17727266?v=4)](https://github.com/twin-elements "twin-elements (9 commits)")

### Embed Badge

![Health badge](/badges/twin-elements-gdpr-cookies-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/twin-elements-gdpr-cookies-bundle/health.svg)](https://phpackages.com/packages/twin-elements-gdpr-cookies-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.

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

Integration bundle for Symfony AI components

32642.2k24](/packages/symfony-ai-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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