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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

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:

  1. As part of your build pipeline, copy the entire vendor/htmlburger/carbon-fields directory into public/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 use public/wp-content/themes/<mytheme>/vendor/cf as an example.
  2. 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

Makefile

Most everyday development tasks are covered in the Makefile.


All versions of adretto-consent-tools with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
sillynet/adretto Version ^0.2
psr/container Version ^1.1
htmlburger/carbon-fields Version ^3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sillynet/adretto-consent-tools contains the following files

Loading the files please wait ....