1. Go to this page and download the library: Download zencule/cookie-banner 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/ */
zencule / cookie-banner example snippets
@
return [
'privacy_policy_url' => env('COOKIE_BANNER_PRIVACY_URL', '/privacy-policy'),
'analytics_id' => env('COOKIE_BANNER_ANALYTICS_ID', ''),
'messages' => [
'banner_text' => 'We use cookies to improve your experience...',
'essential_button' => 'Essential Only',
'accept_button' => 'Accept All',
'more_info' => 'More Information',
],
];