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.
Consider it when:
Look elsewhere when:
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.
How can I help you explore Laravel packages today?