Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Symfony Cookie Consent Bundle

Symfony Cookie Consent Bundle Laravel Package

fatalnetwork/symfony-cookie-consent-bundle

A Symfony bundle for adding cookie consent to your application, with configurable consent banners and cookie handling. Integrates consent management into Symfony projects so visitors can accept or reject cookies.

View on GitHub
Deep Wiki
Context7

Symfony bundle to append Cookie Consent to your website to comply to AVG/GDPR for cookies.

Frequently asked questions about Symfony Cookie Consent Bundle
Can I use fatalnetwork/symfony-cookie-consent-bundle in a Laravel application?
Not directly. It is a Symfony bundle that depends on Symfony's bundle registration, dependency injection extension, configuration tree, and Twig integration, none of which Laravel loads. Using it in Laravel means porting its service definitions, templates, and response subscriber into Laravel equivalents such as a service provider, Blade components, and middleware.
Is fatalnetwork/symfony-cookie-consent-bundle a Laravel package or a Symfony bundle?
It is a Symfony bundle, not a Laravel package. Laravel consumes individual Symfony components like HttpFoundation and Console, but it does not implement the Symfony bundle contract or Kernel::registerBundles(). Treat it as a Symfony-only dependency and as a reference implementation if you are working in Laravel.
How do I install a cookie consent banner in Laravel?
For most Laravel projects, use a maintained native package such as spatie/laravel-cookie-consent or whitecube/laravel-cookie-consent, or a hosted consent management platform like Cookiebot, Osano, or Klaro. These provide banner rendering, category handling, and script gating without translating Symfony bundle internals. If you need full control, build a small first-party package with a config file, Blade component, middleware, and a consents table.
Does this bundle make my Laravel or Symfony site GDPR or AVG compliant?
No package can make a site compliant by itself, and this bundle's compliance claims are not backed by an audit trail in the overview. GDPR and ePrivacy typically require prior blocking of non-essential cookies, granular and configurable purposes, and auditable consent records with timestamps and revocation. A banner that only displays an accept button is not enough in most readings.
Does it block cookies and scripts before consent, or just show a banner?
The overview describes appending a consent banner and cookie handling, but it does not clearly document prior blocking of third-party tags. Prior blocking is the part that carries most of the legal risk, so verify the source before relying on it. If tags fire before consent, the bundle is a banner-only solution and will not meet typical GDPR or ePrivacy expectations.
What Laravel and PHP versions are supported, and is there a test suite?
There is no Laravel version support because this is a Symfony bundle. Its composer.json constraints are not visible in the overview and are likely stale against current PHP 8.3 and Symfony 6 or 7, and no test suite is mentioned. Check the repository's composer.json and CI status before assuming it runs on your stack.
Is this package maintained and safe for production use?
The risk signals are high: one star, zero dependents, a single maintainer, no visible community vetting, and no documented security disclosure channel. Those indicate abandonment risk rather than merely low adoption. For anything customer-facing, prefer a maintained Laravel package or a hosted consent platform with a support contract.
What are the best Laravel alternatives to this Symfony cookie consent bundle?
Common choices are spatie/laravel-cookie-consent and whitecube/laravel-cookie-consent for native Laravel integration, or hosted consent management platforms such as Cookiebot, Osano, and Klaro for banner, categories, and script gating with support. Choose based on whether you need server-side consent records, granular categories, and a revocation path. Avoid adopting an unmaintained third-party bundle just to save a few hundred lines of banner code.
How would I port this Symfony bundle to Laravel?
Porting means rewriting each Symfony artifact rather than installing a dependency. Re-express the DI extension as a Laravel service provider using mergeConfigFrom and publishes, convert Twig templates and extensions into Blade components and directives, and replace the response subscriber with middleware or a view composer. Add a migration for a consents table and a Blade directive such as @consent('analytics') for gating.
Does the bundle store auditable consent records with timestamps and revocation?
The overview does not document consent versioning, timestamps, category values, IP or user binding, or a revocation path. Those are exactly the records you need to demonstrate compliance and to honor withdrawal of consent. If you adopt or port the bundle, plan to add your own consent persistence and audit model rather than assuming it exists.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections