Download the PHP package mmoollllee/filament-consent-control without Composer
On this page you can find all versions of the php package mmoollllee/filament-consent-control. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mmoollllee/filament-consent-control
More information about mmoollllee/filament-consent-control
Files in mmoollllee/filament-consent-control
Package filament-consent-control
Short Description Filament admin UI for consent-control: an opt-in settings page/form and a RichEditor plugin for embedding consent-gated iframes.
License MIT
Homepage https://github.com/mmoollllee/filament-consent-control
Informations about the package filament-consent-control
Filament Consent Control
The Filament admin layer for consent-control: an opt-in settings page/form and a RichEditor plugin for embedding consent-gated iframes.
Part of a three-package stack:
| Package | Role |
|---|---|
consent-control (npm) |
Framework-agnostic runtime + CSS. |
laravel-consent-control |
Blade components, config, drivers, translations, server helpers. |
filament-consent-control (this package) |
Filament settings UI + RichEditor consent-iframe plugin. |
The frontend banner, blocking and configuration come from laravel-consent-control
(installed automatically). A single config file is enough — this package only adds
optional admin convenience on top.
Requirements
- PHP 8.2+ · Laravel 11.28+ / 12 · Filament 5
Installation
This pulls in laravel-consent-control. Publish its config and runtime assets, then set
up the frontend as described in its README:
Register the plugin in your panel (does nothing by itself unless you opt in below):
Frontend assets
The banner, content blocking and JS runtime come from laravel-consent-control (pulled in
automatically) — this package only adds the Filament admin + the RichEditor iframe plugin.
Recommended: bundle the runtime yourself so JS/CSS ship with your Vite build instead of extra requests, and render only the boot config on your site layout:
All options (published assets, no-Tailwind fallback, view publishing) are documented in the
laravel-consent-control README.
To let visitors reopen the banner (e.g. from the privacy policy page), place a button
with the consent-control--open class anywhere — the runtime binds it automatically:
Merge tag for editors (filament-cms)
On a site running mmoollllee/filament-cms that
button is available to editors without typing HTML: the package registers itself with the
CMS shortcode registry on boot — nothing to wire up.
- RichEditor — pick "Cookie-Einstellungen (Button)" from the merge-tag menu.
- Any rich text — write the
[consent_settings]shortcode, optionally with a custom label and extra CSS classes (the trigger class is always kept):
The label defaults to filament-consent-control::consent.reopen_button — publish the
translations to change it globally:
Without filament-cms (or on a version older than Shortcodes::registerMergeTag()) nothing is
registered; Support\ConsentSettingsButton::html() renders the same markup for your own views.
Editing settings in Filament (opt-in)
By default settings are read from config/consent-control.php. To edit them at runtime,
opt in to the eloquent driver and one of the two admin options below.
Option A — ready-made settings page
Adds a "Consent Settings" page to the panel that reads/writes the configured model.
Option B — embed the form in your own resource/page
RichEditor: embed consent-gated iframes
The toolbar gets an "Embed iframe" action (URL, consent category, width, height). Pasted
YouTube/Vimeo links are auto-converted to privacy-friendly embed URLs (YouTube → nocookie). Stored
iframes are rendered on the frontend as blocked .consent-message--wrapper markup
(data-src) and only load once the visitor grants the chosen category — handled by the
shared runtime, so make sure <x-consent-control-scripts /> is on the page.
License
MIT. See LICENSE.md.
All versions of filament-consent-control with dependencies
filament/filament Version ^5.0
filament/forms Version ^5.0
filament/support Version ^5.0
mmoollllee/laravel-consent-control Version ^0.1
spatie/laravel-package-tools Version ^1.16