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

ActiveSymfony-bundle

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

GDPR cookies for CMS

v2.0.1(2y ago)0190MITPHPPHP ^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 4w ago

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

30

—

LowBetter than 64% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity10

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

759d 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

[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[rikudou/psr6-dynamo-db-bundle

PSR-6 and PSR-16 cache implementation using AWS DynamoDB for Symfony

2077.8k](/packages/rikudou-psr6-dynamo-db-bundle)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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