Skip to content

stefpe/sp-consent-bundle

Repository files navigation

SpConsentBundle

A Symfony bundle that provides a GDPR-compliant cookie and consent banner component.

Features

  • 🎨 Unstyled by Default - Bring your own styling (Tailwind, Bootstrap, custom CSS)
  • 🔧 Fully Customizable - Every element can be styled with classes or inline styles
  • Live Components - Interactive banner with Symfony UX Live Components
  • 🌍 Translation Ready - Multi-language support built-in
  • 🍪 Cookie Categories - Support for necessary, analytics, marketing, and functional cookies
  • 📊 GDPR Compliant - Built with privacy regulations in mind
  • 🎯 Easy Integration - Simple Twig components, no complex setup

Quick Start

composer require stefpe/sp-consent-bundle

Add the component to your base template:

{{ component('CookieConsentBanner') }}

Important: The components come with minimal default classes only. You need to style them yourself using Tailwind CSS, custom CSS, or any CSS framework. See the documentation for styling examples.

Resources

License

This bundle is released under the MIT license. See the included LICENSE file for more information.

About

A Symfony bundle that provides a GDPR-compliant cookie and consent banner component via Symfony Live Component.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors