symfinity / privacy-settings-bundle
Strict privacy category settings, consent capture, and form-tier consent UI for Symfony
Package info
github.com/symfinity/privacy-settings-bundle
Type:symfony-bundle
pkg:composer/symfinity/privacy-settings-bundle
Fund package maintenance!
v0.2.3
2026-07-04 23:59 UTC
Requires
- php: >=8.2
- symfinity/ux-blocks-form: ^0.1
- symfony/asset: ^7.4
- symfony/asset-mapper: ^7.4||^8.0
- symfony/config: ^7.4||^8.0
- symfony/dependency-injection: ^7.4||^8.0
- symfony/framework-bundle: ^7.4||^8.0
- symfony/http-kernel: ^7.4||^8.0
- symfony/routing: ^7.4||^8.0
- symfony/stimulus-bundle: ^2.0|^3.0
- symfony/twig-bundle: ^7.4||^8.0
- symfony/ux-twig-component: ^2.0|^3.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^10.5 || ^11.0
- symfinity/ui-kernel: ^0.2
- symfony/browser-kit: ^7.4||^8.0
- symfony/css-selector: ^7.4||^8.0
- symfony/form: ^7.4||^8.0
- symfony/security-csrf: ^7.4||^8.0
- symfony/validator: ^7.4||^8.0
Suggests
- symfinity/ui-kernel: Optional theme tokens and app shell styling for consent UI
README
Privacy Settings Bundle
Strict privacy categories, consent capture, and form-tier consent UI for Symfony
Note
Read-only mirror. See CONTRIBUTING.md for how to propose changes.
Features
- Canonical attribute —
data-privacy-categoryonly; rejects alternate names (data-cookiecategory,data-cc) - Consent services — capture, restore, signed cookie store (default), and store port with events
- ConsentBanner UI — composes
symfinity/ux-blocks-formroles; auto-injects tier CSS + glue (P2 OOTB); Cookie settings reopen - Enforcement (v0.2) —
privacy_consent(),PrivacyMediaEmbed, opt-in script unblocker — docs/enforcement.md - Flex recipe — bundle registration and default four categories on install
Prerequisites
Add the symfinity/recipes Flex endpoint before composer require.
Installation
composer require symfinity/privacy-settings-bundle
See Installation.
Quick start
<twig:ConsentBanner />
Tag and {{ component('ConsentBanner') }} are equivalent. See Quickstart and Enforcement.
Documentation
Requirements
- PHP 8.2+
- Symfony 7.4 or 8.x
symfinity/ux-blocks-form^0.1
Suggest symfinity/ui-kernel for themed apps.