PHP code example of jyxon / gdpr-cookie-compliance
1. Go to this page and download the library: Download jyxon/gdpr-cookie-compliance library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jyxon / gdpr-cookie-compliance example snippets
use Jyxon\GdprCookieCompliance\Cookie\Settings;
//This will default to the config.json provided with the package.
$settings = new Settings();
$settings = new Settings('/some/path/on/my/server/config.json');
use Jyxon\GdprCookieCompliance\Cookie\Settings;
use Jyxon\GdprCookieCompliance\Cookie\Manager;
$settings = new Settings();
$manager = new Manager($settings);