PHPackages                             mariojgt/biscotto - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mariojgt/biscotto

ActiveLaravel[Utility &amp; Helpers](/categories/utility)

mariojgt/biscotto
=================

A Laravel Package Biscotto, will help you enable and disable cookies or scripts that required gdpr compliance.

v1.1.4(6mo ago)2179↓50%11MITBladePHP ^7.3|^8.0CI passing

Since Apr 8Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/mariojgt/biscotto)[ Packagist](https://packagist.org/packages/mariojgt/biscotto)[ RSS](/packages/mariojgt-biscotto/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (17)Used By (1)

[![image info](https://raw.githubusercontent.com/mariojgt/biscotto/main/Publish/Image/Biscotto.png)](https://raw.githubusercontent.com/mariojgt/biscotto/main/Publish/Image/Biscotto.png)

Biscotto, GDPR cookie manager for Laravel
=========================================

[](#biscotto-gdpr-cookie-manager-for-laravel)

[![ko-fi](https://camo.githubusercontent.com/201ef269611db7eb6b5d08e9f756ab8980df3014b64492770bdf13a6ed924641/68747470733a2f2f6b6f2d66692e636f6d2f696d672f676974687562627574746f6e5f736d2e737667)](https://ko-fi.com/D1D5EJZ3P)

### instalation

[](#instalation)

- composer require mariojgt/biscotto
- php artisan v:p --force

### features

[](#features)

- Cookie list to disable
- Scripts and iframes or anything with src can be disable using this package
- All define using config variables
- Lightweight pure vanilia javascript

### How to use ?

[](#how--to-use-)

Note that in this exemple you need to first load your Analytics instead of using src add data-src this will prevent you script to call google from example after you next step you need to add a id so in the cookie package now what to enable or disable those id can be change in the config variable biscotto.php.

Example 1

```

     window.dataLayer = window.dataLayer || [];
     function gtag(){dataLayer.push(arguments);}
     gtag('js', new Date());
     gtag('config', 'UA-152696431-2');

```

Example 2

```

// Iframe example Note the dara-src and the id they are required

```

### Scripts Info

[](#scripts-info)

Note that scripts and iframes don,t need to go inside the x-biscotto::biscotto component you can add in any where in the site because we use the dom so if you have the right tag it will find and enable the script same works for iframe example, note the dara-src and the id.

```

```

### How disable unwanted cookies

[](#how-disable-unwanted-cookies)

There is no way to make this process automatic and effective but you can enable the debug mode in the config variable with that enable it will display for you all the website cookies in you console them based in the names you change the biscotto.php config file and add the cookie you wish to disable if the customer disable the option see the example.

```
    /*
    |--------------------------------------------------------------------------
    | 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'
    ],
```

### Custom message

[](#custom-message)

You can also customize the message and the link for the cookie popup inside the config files.

Notice
------

[](#notice)

The legislation is pretty very vague on how to display the warning, which texts are necessary, and what options you need to provide. This package will go a long way towards compliance, but if you want to be 100% sure that your website is ok, you should consult a legal expert.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance72

Regular maintenance activity

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~119 days

Recently: every ~322 days

Total

15

Last Release

190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c75bb50805eab19dd419d846ba0a7178adac9b475f9787fc213d8be1262ece3c?d=identicon)[mariojgt](/maintainers/mariojgt)

---

Top Contributors

[![mariojgt](https://avatars.githubusercontent.com/u/7347012?v=4)](https://github.com/mariojgt "mariojgt (37 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

cookiegdprgdpr-consentgdpr-cookiegdpr-laraveliframeslaravellaravel-frameworklaravel-packagephplaravelcookieanalyticsgdprlaravel gdprCookie managercookie gdprscript gdprgdpr laravel

### Embed Badge

![Health badge](/badges/mariojgt-biscotto/health.svg)

```
[![Health](https://phpackages.com/badges/mariojgt-biscotto/health.svg)](https://phpackages.com/packages/mariojgt-biscotto)
```

###  Alternatives

[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[panphp/pan

A simple, lightweight, and privacy-focused product analytics php package.

1.2k94.6k5](/packages/panphp-pan)[scify/laravel-cookie-guard

A Laravel package that provides a Cookies consent floating window and publishes the Cookies for the different consent categories

13714.3k](/packages/scify-laravel-cookie-guard)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[xsuchy09/utm-cookie

Utm-Cookie saves utm parameters from url into cookie with defined lifetime (default 7 days). Than cookie (utm) can be used later without parsing google or any other cookies.

1456.1k2](/packages/xsuchy09-utm-cookie)[marcogermani87/filament-cookie-consent

Easy cookie consent integrations for Filament

1917.0k](/packages/marcogermani87-filament-cookie-consent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
