yezzmedia / laravel-user-consent
Customer-facing consent decisions and consent-aware gating for the Yezz Media Laravel website platform.
Requires
- php: ^8.5
- illuminate/contracts: ^13.0
- illuminate/support: ^13.0
- spatie/laravel-package-tools: ^1.93
- yezzmedia/laravel-account: ^0.2
- yezzmedia/laravel-dashboard: ^0.2
- yezzmedia/laravel-foundation: ^0.2
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.29
- mockery/mockery: ^1.6
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
This package is auto-updated.
Last update: 2026-07-01 11:51:36 UTC
README
Laravel User · Consent
yezzmedia/laravel-user-consent provides cookie consent management, consent-aware analytics gating, and a user-facing preferences page for the Yezz Media platform.
It injects consent banners into the dashboard bottom-bar, persists decisions per session, and integrates with the account sidebar for preference management.
Version
Current release: 0.2.0
Requirements
- PHP
^8.5 - Laravel
^13.0components spatie/laravel-package-tools ^1.93yezzmedia/laravel-foundation ^0.2yezzmedia/laravel-account ^0.2yezzmedia/laravel-dashboard ^0.2
Installation
composer require yezzmedia/laravel-user-consent
What The Package Provides
Consent Banner
A cookie consent banner injected into the dashboard bottom-bar via BottomBarLinkRegistry, with accept/reject buttons and a link to the preferences page.
Consent Persistence
Decisions are persisted per session with configurable consent versioning. When consent definitions change, users are re-prompted.
Preferences Page
The /consent/preferences route renders a user-facing preferences page with:
- Toggle controls per consent category
- Auto-renders in the account layout when a default Filament panel is configured
- Falls back to a standalone layout with full Tailwind CSS support
Consent-Aware Gating
Integrates with laravel-ops-analytics to gate tracker dispatch on active consent decisions.
Install Steps
Foundation-aligned install step creates the consent tables migration and ensures the consent store is ready.
Account Integration
Registers navigation items in the account sidebar for consent preferences access.
Development
composer test
composer analyse
composer format
License
MIT