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

Consent Contracts Laravel Package

setono/consent-contracts

Framework-agnostic PHP contracts for consent management. setono/consent-contracts defines the interfaces your app and third-party consent providers implement, keeping cookie and GDPR consent logic decoupled, testable, and easy to swap between implementations.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for consent management: The package provides CMP-agnostic contracts (purposes/categories, vendors, consent records), so you can decide whether to build consent logic in-house or buy a CMP without hard-coding either choice into your domain model.
  • CMP vendor selection and replacement: Because your application depends on interfaces rather than a specific vendor SDK, you can evaluate OneTrust, Cookiebot, Usercentrics, or a homegrown solution and swap adapters with limited blast radius.
  • Roadmap sequencing for consent-aware features: Marketing tags, analytics gating, personalization, and regional consent rules can be planned against stable contracts, letting product and engineering work in parallel.
  • Compliance and audit requirements: Supports GDPR/ePrivacy-style consent capture and proof-of-consent needs by giving privacy and engineering a shared vocabulary for purposes and vendors.
  • Multi-brand, multi-region operations: Reuse the same consent contracts across Laravel applications and storefronts while varying the CMP adapter per market.
  • Release note impact (v1.1.0): The wording alignment with mainstream CMP platforms reduces translation friction in integrations, but the changelog is too thin to confirm whether PHP interface or method names changed. Treat as a potential backward-compatibility risk until verified.

When to Consider This Package

Consider it when:

  • You are building on Laravel/PHP and expect to change, test, or operate multiple CMPs across brands or regions.
  • You want consent checks expressed as typed domain contracts rather than scattered JavaScript cookie reads or vendor-specific SDK calls.
  • You need a lightweight abstraction layer and are prepared to own the adapter implementations for your chosen CMP(s).
  • Your privacy/legal stakeholders want a consistent vocabulary for consent purposes and vendors that maps to mainstream CMP terminology.

Look elsewhere when:

  • You need a complete CMP — banner UI, geo-targeting rules, vendor databases, consent receipts, and reporting. This package provides contracts, not a CMP.
  • Your product is a JavaScript-first SPA or non-PHP stack where these contracts add little value.
  • You need turnkey compliance certification or managed consent operations.
  • You cannot absorb migration work if v1.1.0’s wording changes turn out to include renamed interfaces or methods. Confirm the diff before committing.

How to Pitch It (Stakeholders)

For executives: This is a small, low-cost abstraction that reduces vendor lock-in and compliance integration risk. It lets us change consent vendors without rewriting product features, but it is not a compliance product on its own — legal and engineering still own the process.

For engineering: The package defines consent contracts instead of a full implementation. v1.1.0 aligns naming with mainstream CMP platforms, which should simplify adapter work and onboarding. The release notes only mention wording changes, so review the changelog diff for any interface or method renames before upgrading; if changes are limited to documentation and parameter names, the upgrade should be low-risk.

For privacy/legal: The contracts create a single vocabulary for consent purposes and vendors aligned with common CMP terminology, which supports DPIAs, audits, and consistent consent records — provided the underlying CMP adapter is implemented and validated.

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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package