Download the PHP package quebecstudio-mods/statamic-consent-kit without Composer

On this page you can find all versions of the php package quebecstudio-mods/statamic-consent-kit. 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 statamic-consent-kit

Cookie Consent Kit for Statamic

Cookie consent banner for Statamic 6, built for Quebec's Law 25 and usable under the GDPR.

No third-party cookie is set before the visitor agrees, and the markup is the same for every visitor, so pages stay cacheable — static caching included.

What it does

With the Pro edition

Editions

Edition What it adds
Standard The banner, the cookie inventory, the video facade
Pro The consent register: server-side proof of what was shown and answered

Set the edition in config/statamic/editions.php:

Installation

Requires PHP 8.2 and Statamic 6.

The addon is discovered automatically. The banner is added to every HTML page Statamic serves; the control panel is untouched.

Settings live under Settings › Cookie Consent Kit. Publishing config/cookie-consent.php is optional and pins whatever it declares: those settings then show as read-only in the panel.

In templates

The banner is injected on every page, so a template needs nothing. With autoInject off, place it yourself — where the tag sits does not matter, only that it is called once:

A Blade site uses @cookieConsentBanner and @withCookieTable instead. Both go through the same facade.

The consent register

With the Pro edition and the register turned on, every decision is recorded as the browser makes it: the server clock, the site, the categories answered, and a fingerprint of the wording that was on screen. The cookie's own timestamp lives on the visitor's device and proves nothing.

Records are read under Tools › Consent, filtered by date and answer, and exported as CSV or JSON. An export carries the wording of every screen, so a reader can recompute each fingerprint and check that nothing moved.

The register uses the site's database. Name another connection to keep the proofs apart:

Permissions: View the consent register, with Export and Purge nested under it. Retention removes outlived records; Tools › Utilities › Consent Purge deletes them on demand.

Tailwind

inventoryFramework => 'tailwind' styles the cookie inventory with Tailwind classes. They come from the package, which Tailwind does not scan, so add it to the sources:

Without it the inventory is styled only where the site happens to use the same utilities elsewhere.

How it is built

Statamic is a Laravel application, so the banner is injected by quebecstudio-mods/laravel-consent-kit and rendered by quebecstudio-mods/consent-kit-core; the register is kept by quebecstudio-mods/consent-kit-register. This addon adds the Antlers tags, the control panel screens and the register's own.

Documentation

DOCUMENTATION.md covers the settings, the tags, the cookie inventory, the control panel and the consent register.

Tests

Licence

Proprietary. See LICENSE.md.


All versions of statamic-consent-kit with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
quebecstudio-mods/consent-kit-core Version ^1.5.1
quebecstudio-mods/consent-kit-register Version ^1.0
quebecstudio-mods/laravel-consent-kit Version ^1.1
statamic/cms Version ^6.0
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 quebecstudio-mods/statamic-consent-kit contains the following files

Loading the files please wait ...