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

Livewire Cookie Consent Laravel Package

christopheraseidl/livewire-cookie-consent

Livewire Cookie Consent provides a ready-made Livewire component for adding a cookie consent banner to Laravel applications. Collect visitor approval before setting cookies, then customize the message, button labels, and persistence through config options and publishable views.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature delivery for compliance-facing work: The package underpins a cookie-consent banner (GDPR/ePrivacy-style) in a Laravel + Livewire application. The v1.1.0 configurability additions (new config file, configuration service) let a PM define banner copy, categories, and placement without forking the codebase — shortening the loop between legal review and shipped UI.
  • Build vs. buy vs. adopt: Adopting an open-source Livewire-native package removes the cost of building banner UI, persistence hooks, and install tooling in-house. The new install/uninstall commands also lower the cost of spikes and POCs, which makes "prototype consent flow this sprint" a realistic roadmap item rather than an epic.
  • Roadmap signal for consent-gated loading: The new asset-management service suggests a path toward controlling when scripts (analytics, tag managers, marketing pixels) load. That is the difference between a cosmetic banner and actual consent enforcement — a distinction that matters for audit and for any EU/UK launch gate.
  • Scope clarity: This is a consent UI and wiring package, not a full Consent Management Platform. Product decisions that require consent records, receipts, audit logs, geo-targeting, or IAB TCF must be scoped as separate work or satisfied by a commercial CMP. Do not let a banner shipment be reported as "GDPR done."
  • Risk on upgrade: v1.1.0 changes Livewire component paths, removes files, and reworks the testing setup. Any team that extended v1.0.0 (custom views, overridden services, own test harness) has upgrade work. Roadmap planning should budget a small migration task rather than treating this as a drop-in patch.
  • Use cases that fit well: marketing sites and SaaS onboarding flows served by a single Laravel/Livewire app; internal tools with EU users; MVPs that need a defensible consent prompt before a paid CMP is justified.

When to Consider This Package

Adopt when:

  • The stack is already Laravel with Livewire, and the banner can live inside the existing Blade/Livewire surface.
  • The requirement is a first-party consent prompt with accept/reject and category preferences — not a full consent record system.
  • The team is small and can own the implementation, read the changelog, and pin a version.
  • Legal has signed off on the consent copy and the retention/record-keeping approach independently of the package.
  • You want the install/uninstall commands for fast environment setup and clean removal if the approach changes.

Look elsewhere when:

  • You need consent receipts, durable audit logs, TCF support, geo/IP-based banner targeting, or dashboards — the domain of OneTrust, Cookiebot, CookieYes, or a comparable CMP.
  • The front end is an SPA (Vue/React/Inertia) where Livewire is not the rendering layer.
  • You require a vendor SLA, indemnity, or support contract for a regulator-facing control.
  • Your CSP is strict and unpublished; the new asset-management service should be verified against your header policy before committing.
  • You cannot absorb breaking changes on upgrade cadence, or the package is load-bearing and has no internal owner.
  • The application is multi-tenant with per-tenant consent policies — configuration will likely need extension work.

How to Pitch It (Stakeholders)

For executives: We can ship a cookie-consent banner on our existing Laravel/Livewire stack without buying a platform or building UI from scratch, which meaningfully reduces cost and time to a compliant-looking experience. The v1.1.0 release makes the banner configurable without code changes, which speeds up legal review cycles. Two caveats to state plainly: this is a consent interface, not a compliance system of record, and the upgrade from v1.0.0 carries breaking changes for anyone who customized it. Treat it as a fast, low-cost first step while a CMP decision is deferred.

For engineering: Livewire-native, config-driven, with install/uninstall commands and a new asset-management and configuration service layer that cleanly separates banner behavior from application code. Testing now runs on Laravel's own test framework, which means less bespoke tooling. The trade-off is churn: Livewire component paths moved, some files were removed, and the testing setup changed — so extensions against v1.0.0 must be re-validated. Recommend pinning the version, reading the full changelog before upgrading, and adding a smoke test that asserts the banner renders and preference choices persist.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib