mifefr/consent-string-sdk-php

Transparency and Consent Framework: Consent String SDK (PHP)

v1.1.1 2019-01-02 15:06 UTC

This package is auto-updated.

Last update: 2024-05-11 23:26:33 UTC


README

Transparency and Consent Framework: Consent String SDK (PHP)

Quality

Build Status codecov Maintainability Viewed

Install

Install with composer:

composer require mifefr/consent-string-sdk-php

Usage

use Mifefr\ConsentString;

$base64IAB = 'BOXhscYOXhscYACABDENAE4AAAAAwQgA';
$consent = new ConsentCookie( $base64IAB );

echo $consent->getConsentLanguage();
// EN

$consent->setConsentLanguage( 'FR' );

echo $consent->toBase64();
// BOXhscYOXhscYACABDFRAE4AAAAAwQgA

Documentation

Documentation can be found in the the docs directory.

License

Released under the MIT License (MIT). See LICENSE for more information.