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

Cookie Consent Bundle Laravel Package

pierre-brtrd/cookie-consent-bundle

A Symfony bundle for adding a configurable cookie consent banner to your application, letting visitors accept or reject cookies and helping you meet GDPR and ePrivacy requirements with minimal setup. Provides templates, configuration options, and JavaScript hooks for customizing consent behavior.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

Build vs. buy for consent management. The package is a viable candidate for the "banner + granular opt-in + preference storage + withdrawal" slice of GDPR/ePrivacy compliance, letting you self-host rather than pay a CMP (OneTrust, Cookiebot, Osano, Usercentrics). The decision hinges on requirements: standard analytics/marketing categories fit here; IAB TCF programmatic advertising does not.

Compliance roadmap sequencing. Supports near-term EU/UK launch requirements and gives a base to extend to CCPA/CPRA opt-out, LGPD, and region-aware banner behavior. It delivers the mechanism, not the policy — legal copy, retention rules, and withdrawal flows remain product/legal work you must schedule anyway.

Tag governance and analytics strategy. Enables consent-gated loading of analytics/marketing tags and is the natural integration point for Google Consent Mode v2. Choosing "gate tags at the app layer" vs. "let a third-party CMP gate them" becomes a cheap experiment rather than a long procurement.

Consent auditability. If consent records (cookie/localStorage plus optional DB logging with timestamp and policy version) are persisted, it supports DPO/DSAR workflows and "prove consent" requirements. Verify before committing — this is the most consequential capability for regulated industries.

Regional UX and experimentation. A self-hosted banner lets product own copy, localization, layout, and accept-rate A/B tests — often constrained behind paid CMP tiers.

Roadmap timing and risk posture. v1.0.2 is a patch on 1.0.x with release notes limited to a changelog link — no stated features, breakages, or deprecations. Read it as stabilization, not API commitment. Treat the public surface as "likely stable, not guaranteed" and isolate it behind a thin wrapper so a major bump or CMP swap is contained.

Maturity is itself a decision input. 1 GitHub star, 0 dependents, single maintainer, and Symfony lineage are adoption risks a PM should price in explicitly — this is a "spike with an exit plan," not a strategic platform bet.

When to Consider This Package

Consider it when:

  • You run a PHP/Laravel app with server-rendered views and want consent handled in-repo, in your deploy pipeline, with no third-party script in the critical path.
  • Requirements are standard categories (necessary / preferences / analytics / marketing) with opt-in for EU/UK, a preference center, and a "change my choices" withdrawal link.
  • You want first-party data handling — no consent data leaving your infrastructure, no per-pageview pricing, no procurement cycle.
  • You need a fast, low-cost spike: composer require, publish config/views, wire a middleware or Blade component, configure categories, ship — days, not quarters.
  • You have engineering capacity to own the last mile: legal-approved copy, i18n, WCAG 2.1 AA accessibility, and verification that scripts are actually blocked.

Look elsewhere when:

  • You need IAB TCF v2.x signals, vendor-issued consent receipts, or contractual SLAs — use a certified CMP.
  • You are enterprise/multi-brand/multi-domain with marketing ops expecting a config UI, tag templates, and geo-targeting without deploys.
  • You need legal indemnification or a vendor to point at during a regulatory inquiry.
  • The stack is not Symfony/PHP-native — the package is a Symfony bundle, so Laravel fit (auto-discovery, config merge, Blade view registration, supported version range) must be proven, not assumed; budget adapter work.
  • Due diligence flags appear: no tests/CI, no security policy, stale single-maintainer commits, or a banner that records consent but does not prevent previously-firing scripts (a dangerous false sense of compliance).

Minimum diligence checklist: license and versioning policy; test suite and CI; supported framework/PHP versions against your matrix; proof consent capture happens prior to script execution; storage and retention options; i18n; accessibility; security contact; issue responsiveness; and a documented exit path.

How to Pitch It (Stakeholders)

To executives (one paragraph): Cookie consent is a mandatory cost for EU/UK traffic, and the market default is a subscription CMP with per-pageview pricing plus a vendor script on every page. This package lets us meet standard consent requirements inside our existing PHP codebase for roughly a short engineering spike — first-party data, no recurring license, no new vendor. It is a patch-level 1.0.2 release with a single maintainer and minimal adoption, so expect bug fixes but not a frozen API; we should wrap it so upgrades or replacement stay cheap. Recommendation: approve a timeboxed 1–2 day evaluation plus legal review of banner copy. If we later need IAB TCF for programmatic ads or enterprise tag governance, we revisit and budget for a commercial CMP. Downside risk is contained — the integration is small and replaceable.

To engineering: Low-friction path — install via Composer, publish config/views, map consent categories, persist choices (cookie + optional DB audit record with timestamp and policy version), and gate analytics/marketing tags behind a single consent service. Because it is a Symfony bundle, first confirm framework fit and treat any missing Laravel provider as expected adapter work. Scope the spike to prove: (1) non-essential scripts do not fire before consent; (2) a stored, versioned consent record exists for audit; (3) a re-open/withdraw path works and clears tracker cookies; (4) an isolation seam (one adapter class) so upgrades or a CMP swap are contained. Flag version-matrix mismatches and confirm test coverage and license before committing.

To legal/DPO: The package provides the mechanism — banner, granular categories, preference storage, withdrawal — not the policy. We need sign-off on category definitions, banner and preference-center copy per locale, retention period for consent records, and whether stored evidence meets "freely given, specific, informed, unambiguous" for each jurisdiction. Confirm the audit-trail granularity you require so engineering can size DB logging during the spike.

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.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums