mifefr / consent-string-sdk-php
Transparency and Consent Framework: Consent String SDK (PHP)
Installs: 7 694
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.6.0
Requires (Dev)
- cvuorinen/phpdoc-markdown-public: ^0.2.0
- phpunit/phpunit: 5.*
README
Transparency and Consent Framework: Consent String SDK (PHP)
Quality
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.