Download the PHP package sillynet/adretto-consent-tools without Composer
On this page you can find all versions of the php package sillynet/adretto-consent-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sillynet/adretto-consent-tools
More information about sillynet/adretto-consent-tools
Files in sillynet/adretto-consent-tools
Package adretto-consent-tools
Short Description A backend for the consent-tools library in Wordpress using Adretto.
License GPL-3.0-only
Informations about the package adretto-consent-tools
Wordpress Consent Tools Server & Administration for Adretto
A backend for the consent-tools library in Wordpress using Adretto.
- Installation
- Usage
Installation
via composer:
This library is an extension to the Adretto Wordpress ADR framework, so you will need to have Adretto installed and set up.
Make sure you have Composer autoload or an alternative class loader present.
Carbon Fields
This packages uses CarbonFields to generate
the settings page. Unfortunately CarbonFields can be somewhat tricky to set up
when used outside a theme's root directory.
If your theme files live in public/wp-content/themes/<yourtheme>/
, and you
have your composer.json and vendor/
directory there, you're fine.
If you however maintain your Composer dependencies outside of the theme directory, or use some symlink setup, you might be in trouble. The simplest solution is to add a step to your setup and build process to make CF's JS and CSS assets publicly available at a known path:
- As part of your build pipeline, copy the entire
vendor/htmlburger/carbon-fields
directory intopublic/wp-content
(or you could copy just the*.js
and*.css
files, but you'll have to keep the directory structure). A simple solution is to actually use your theme directory, so let's usepublic/wp-content/themes/<mytheme>/vendor/cf
as an example. - Tell CarbonFields where it can find its assets by setting a constant before
CF is "booted", somewhere near the top of your
functions.php
would work fine in most scenarios:
Usage
Load the extension in your Adretto configuration file:
You will find a settings page under the Wordpress general settings tab where
you can configure the consent management services for
@gebruederheitz/consent-tools
.
When setting up consent-tools you can retrieve the configuration via
/wp-json/sillynet/v1/consent-management/config?lang=en
, which will return an
object with the following shape:
Development
Dependencies
- PHP >= 7.4
- Composer 2.x
- NVM and nodeJS LTS (v16.x)
- Nice to have: GNU Make (or drop-in alternative)
Makefile
Most everyday development tasks are covered in the Makefile.
All versions of adretto-consent-tools with dependencies
sillynet/adretto Version ^0.2
psr/container Version ^1.1
htmlburger/carbon-fields Version ^3.3