PHP code example of mariojgt / biscotto

1. Go to this page and download the library: Download mariojgt/biscotto 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/ */

    

mariojgt / biscotto example snippets


<x-biscotto::biscotto>
<!-- Global site tag (gtag.js) - Google Analytics -->
 <script async
  id="script_cookie_statstics" // The id that comes from the config file
  data-src="https://www.googletagmanager.com/gtag/js?id=UA-152696431-2"
 ></script>
  <script>
     window.dataLayer = window.dataLayer || [];
     function gtag(){dataLayer.push(arguments);}
     gtag('js', new Date());
     gtag('config', 'UA-152696431-2');
 </script>
</x-biscotto::biscotto>

    /*
    |--------------------------------------------------------------------------
    | Cookie you wish to remove if the user don't allow them
    |--------------------------------------------------------------------------
    |
    | If you know the cookies name you wish to remove
    | Once the user don't allow, if you don't know the cookie you can setup
    | The varaible test mode to true it will show all the cookie inf you browser
    |
    */
    // Example
    'cookie_functional' => [
		'example','another'
    ],
    'cookie_statstics' => [
        '_ga','_gid','_gat_gtag_UA_124396431_2'
    ],
    'cookie_marketing' => [
		'example','another'
    ],