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(3mo ago)334MITPHPPHP &gt;=8.0

Since Jan 2Pushed 3mo 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 3w 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

38

—

LowBetter than 83% of packages

Maintenance81

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

103d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[anahkiasen/former

A powerful form builder

1.3k1.4M14](/packages/anahkiasen-former)[statikbe/laravel-cookie-consent

Cookie consent modal for EU

219416.5k](/packages/statikbe-laravel-cookie-consent)

PHPackages © 2026

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