PHPackages                             w01ki3/cookie-consent - 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. w01ki3/cookie-consent

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

w01ki3/cookie-consent
=====================

Laravel uygulamaları için KVKK(TR) ve GDPR(AB) uyumlu çerez onay paketi.

v1.1.1(1mo ago)334↓100%MITPHPPHP &gt;=8.0

Since Jan 2Pushed 1mo ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (5)Used By (0)

cookie-consent
==============

[](#cookie-consent)

*Take control of the cookie policy warning for your Laravel projects with this package.
Record in the database whether the user accepts or rejects the cookie policy.
User activity is recorded along with masked IP address information.
You can customize it.
You can also add different language options. (Currently, Turkish and English are included in the package.)*

***Installation steps***

**1**. Install the package via Composer:

```
composer require w01ki3/cookie-consent
```

**2**. Publish the package resources

```
php artisan vendor:publish --provider="w01ki3\CookieConsent\CookieConsentServiceProvider"
```

**3**. Create a table to transfer the records to the database.

```
php artisan migrate
```

**4**. If you don't have a csrf token, please add it to the page.

```

```

**5**. Add styles in the `` section:

```
{!! CookieConsent::styles() !!}
```

**6**. Add scripts before closing ``:

```
{!! CookieConsent::scripts() !!}
```

*Cookie settings can be managed from the config/cookie-consent.php file*

```
'cookie_categories' => [
    'necessary' => [
        'enabled' => true,
        'locked' => true,
    ],
    'analytics' => [
        'enabled' => env('COOKIE_CONSENT_ANALYTICS', true),
        'locked' => false,
        'js_action' => 'loadGoogleAnalytics',
    ],
    'marketing' => [
        'enabled' => env('COOKIE_CONSENT_MARKETING', true),
        'locked' => false,
        'js_action' => 'loadFacebookPixel',
    ],
    'preferences' => [
        'enabled' => env('COOKIE_CONSENT_PREFERENCES', true),
        'locked' => false,
    ],
]
```

*Then you will see an image like the one below on your screen.*
[![Demo](https://camo.githubusercontent.com/c2061f0b283456f1fe149281e80c82811a7f8d89cb3d1397b74f28c3562d751a/68747470733a2f2f62696e6f766173796f6e2e636f6d2f6d656469612f636f6f6b69652d636f6e73656e742d64656d6f2e676966)](https://camo.githubusercontent.com/c2061f0b283456f1fe149281e80c82811a7f8d89cb3d1397b74f28c3562d751a/68747470733a2f2f62696e6f766173796f6e2e636f6d2f6d656469612f636f6f6b69652d636f6e73656e742d64656d6f2e676966)

*The recorded log table is as follows:*
table name : **cookie\_consent\_logs**

idip\_addressuser\_agentactionpreferencesurlbigintvarchar(255)textvarchar(255)jsonvarchar(255)1255.255.255.\*\*\*Mozil....accepted{"analytics": true,"marketing": true,"necessary": true,"preferences": true}[www.project.test](http://www.project.test)

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~23 days

Total

4

Last Release

57d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40281673536f87d0415a8d42b4c39a817e3280b27055096e570d0db4643097e8?d=identicon)[w01ki3](/maintainers/w01ki3)

---

Top Contributors

[![w01ki3](https://avatars.githubusercontent.com/u/59314667?v=4)](https://github.com/w01ki3 "w01ki3 (15 commits)")

---

Tags

laravelcookiegdprconsentonaykvkkçerezbildirim

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/w01ki3-cookie-consent/health.svg)

```
[![Health](https://phpackages.com/badges/w01ki3-cookie-consent/health.svg)](https://phpackages.com/packages/w01ki3-cookie-consent)
```

###  Alternatives

[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[devrabiul/laravel-cookie-consent

A GDPR-compliant cookie consent solution for Laravel applications with fully customizable cookie banners, granular consent control, and enterprise-grade compliance features.

17633.8k1](/packages/devrabiul-laravel-cookie-consent)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1625.8k](/packages/codingfreaks-cf-cookiemanager)[bramdeleeuw/cookieconsent

GDPR compliant cookie bar and consent checker

1511.5k2](/packages/bramdeleeuw-cookieconsent)[martin-schenk/laravel-cookie-consent

GDPR-compliant cookie consent system with minimal dependencies for Laravel 11 and 12

101.3k](/packages/martin-schenk-laravel-cookie-consent)

PHPackages © 2026

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