PHP code example of ajaz / cookie-consent-php

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

    

ajaz / cookie-consent-php example snippets


use Ajaz\CookieConsent\Widget;

siteName'=>'Your website name',
	'noticeBannerType'=> Widget::INTERSTITIAL_NOTICE_BANNER,
	'consentType'=> Widget::EXPRESS,
	'palette'=> Widget::DARK_SKIN,
	'cookiesPolicyUrl'=> 'http://www.example.com/cookie-policy',
]); 

composer