teppokoivula / cookie-table
A ProcessWire CMS/CMF module for adding a cookie table on your site.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:pw-module
Requires
- php: >=8.0
- processwire/processwire: >=3.0.184
- wireframe-framework/processwire-composer-installer: ^1.0.0
This package is not auto-updated.
Last update: 2025-04-06 17:14:10 UTC
README
Cookie Table is a module for ProcessWire CMS/CMF intended for adding a cookie table on your site, i.e. a list of cookies that your site uses along with key details about each cookie: name, provider (if known), description, duration, and so on.
When installed, Cookie Table adds a "Cookies" page into the admin interface, by default under "Setup". Cookies page provides a simple interface for managing — adding, updating, or removing — listed cookies. On your site you can use the render method to render a prebuilt table of known cookies:
echo $modules->get('CookieTable')->render();
Alternatively you can get a list of cookies as a raw array and render the list any way you prefer:
$cookies = $modules->get('CookieTable')->getCookies(); foreach ($cookies as $cookie) { echo "Cookie name: " . $cookie['name'] . "<br>"; }