PHP code example of dynamikaweb / yii2-cookieconsent-widget
1. Go to this page and download the library: Download dynamikaweb/yii2-cookieconsent-widget 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/ */
dynamikaweb / yii2-cookieconsent-widget example snippets
use dynamikaweb\cookieconsent\CookieConsent;
echo CookieConsent::widget([
'assetType' => CookieConsent::ASSET_TYPE_CDN,
'pluginOptions' => [
# see examples: https://www.osano.com/cookieconsent/documentation/javascript-api
]
]);