PHP code example of femundfilou / kirby-cookie-consent

1. Go to this page and download the library: Download femundfilou/kirby-cookie-consent 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/ */

    

femundfilou / kirby-cookie-consent example snippets



 snippet('cookie-consent'); 

return [
  'femundfilou.cookie-consent' => [
    'cookieName' => 'cc_policies',
    'blockPage' => false,
    'expires' => 365,
    'locale' => 'en',
    'position' => 'bottom-right',
    'autoIncludeJs' => true
  ]
];

 snippet('cookie-consent', ['locale' => 'de']);