emplify-software/statamic-cookie-dialog
A GDPR-compliant cookie consent dialog for Statamic. Visitors can accept or reject individual cookie groups, and scripts stay blocked until consent is given. Cookie groups and translations are configurable, making it easy to drop into any Antlers template.
Architecture fit. emplify-software/statamic-cookie-dialog is a Statamic addon (Composer package, Laravel service provider, Antlers tag + publishable views/config) rather than a standalone Laravel package. That distinction matters for scoping: it fits cleanly into Laravel applications where Statamic owns the front-end rendering layer (marketing sites, content-driven storefronts), and fits poorly in API-only or non-Statamic Laravel services. The v3.0.4 addition of Multi-Site support aligns the addon with Statamic's native multi-site model (per-site locales/domains, site-scoped content trees), which is the correct architectural direction for any consent widget that renders per-domain.
Integration feasibility. Low effort. Standard path is composer require, rely on package auto-discovery, publish config/views, and drop the consent tag into the base layout. Multi-site does not change the installation mechanics; it changes configuration surface — the addon must now resolve which site's settings, translations, and cookie scoping apply at render time. Expect a small amount of per-site config authoring (cookie name/domain, banner copy/localization if offered, consent categories) rather than new code.
Technical risk.
Key questions.
Stack fit. Requires a Statamic-backed Laravel app. Confirm Statamic major version compatibility before scheduling work — addons commonly pin to a Statamic major, and a mismatch here is the most likely blocker. Multi-site support presumes the Statamic multi-site config (sites: in config/statamic/sites.php) is already established; if our multi-site rollout is not yet live, this feature is inert for us and 3.0.4 is effectively a no-op upgrade.
Migration path. For single-site installs: low-risk composer bump, verify published views/config are unchanged, smoke-test banner render and consent persistence. For multi-site installs: bump, then explicitly author per-site configuration and verify each domain independently. Do not assume the upgrade "just works" per site — the failure mode is a correct-looking banner with the wrong configuration.
Compatibility. Two axes: Statamic/Laravel version, and our own consent-policy content per locale. The second is organizational, not technical, and is usually the longer pole — localized banner copy and category definitions need legal/compliance sign-off per market, which can outlast the engineering work.
Sequencing.
Maintenance. Low ongoing code footprint, but the addon is single-vendor and low-velocity — a small dependency we should track explicitly rather than assume is maintained. Pin the version in composer.json and treat upgrades as deliberate, reviewed changes rather than routine composer update drift.
Support. Support burden shifts from engineering to content/compliance: once multi-site is configured, per-market banner copy and category definitions become an ongoing editorial and legal-review obligation. Establish ownership up front, otherwise consent content silently ages out of date as markets are added.
Scaling. Rendering cost is negligible. The scaling concern is combinatorial: N sites × M locales × K consent categories of configuration to keep correct, plus cache keys that must include site context. Complexity grows with the site matrix, not with traffic.
Failure modes.
Ramp-up. Minimal for a Laravel/Statamic-fluent engineer — hours, not days. The real ramp-up is cross-functional: compliance/legal must review per-market consent copy, and whoever owns the multi-site content model must own the per-site configuration. Budget review cycles, not engineering cycles. Recommend an explicit per-domain acceptance checklist (render, cookie name/domain, consent persistence, cache) as the definition of done for the multi-site rollout.
How can I help you explore Laravel packages today?