freshheads/cookie-guard-bundle
Symfony bundle from Freshheads that adds cookie consent guarding to your app, helping ensure cookies and related scripts only load when visitors permit. Simple Composer install and configuration for PHP projects.
<script> tags with type="text/plain" or data-* attributes and swap them client-side after consent, or (b) defer entirely to a client-side tag manager/CMP with built-in blocking. This package is pattern (a). Pattern (a) leaks less third-party JS before consent but requires you to own the inventory and the swap logic.Consider it only under a narrow set of conditions:
Look elsewhere when:
Follow-up action: re-read this assessment when 2.0.0 stable lands with an actual changelog. If that release adds consent persistence, policy versioning, or a documented migration path, the build-vs-buy calculus changes and this deserves a fresh evaluation rather than an inherited "rejected."
Recommendation: still do not adopt for our Laravel codebase — but soften the framing from "abandoned" to "wrong fit, immature release."
<script type="text/plain" data-consent-category="..."> tags, keep a category-to-consent map, and on consent change, clone and inject the approved tags. Owning that code is lower risk than adopting a pre-release dependency, and it lets us integrate directly with whichever CMP we pick. If anyone wants to revisit at 2.0.0 stable, the ask is: read the changelog, confirm no TCF/audit features are needed, and bring a maintenance-ownership proposal.How can I help you explore Laravel packages today?