PHPackages                             nickdekruijk/cookiewall - 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. nickdekruijk/cookiewall

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

nickdekruijk/cookiewall
=======================

A simple cookie accept popup for EU laws

15PHP

Since Mar 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nickdekruijk/cookiewall)[ Packagist](https://packagist.org/packages/nickdekruijk/cookiewall)[ RSS](/packages/nickdekruijk-cookiewall/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Cookiewall
==========

[](#cookiewall)

According to EU laws visitors should opt-in for all tracking cookies/pixels/code. This package adds a simple 'Accept Cookies' popup to your Laravel Application.

Installation
------------

[](#installation)

To install package use `composer require nickdekruijk/cookiewall`

Publish the config file in case you want to customize it

```
php artisan vendor:publish --provider=NickDeKruijk\\Cookiewall\\CookiewallServiceProvider
```

For Laravel version lower then 5.5 add the Service Provider to the `'providers'` array in `config/app.php`

```
NickDeKruijk\Cookiewall\CookiewallServiceProvider::class,
```

Frontend
--------

[](#frontend)

Add this to every view/page where you want to show the popup

```
@include('cookiewall::show')
```

And wrap any code that places tracking cookies/pixels/code with the `cookiewallAccept()` helper, for example like this:

```
@if (cookiewallAccept())
// Your tracking code here
@endif
```

And style the popup as you like, for example:

```
.cookiewall-container {position:fixed;bottom:0;left:0;right:0;background-color:red;text-align:center;padding:50px;z-index:9999;color:#fff}
.cookiewall-button {display:inline-block;padding:10px 20px;border:2px solid #fff;border-radius:5px;text-decoration:none;color:inherit;margin:10px}
.cookiewall-button:hover {background-color:rgba(255,255,255,0.5)}
.cookiewall-button-accept {background-color:#fff;color:red}
.cookiewall-button-accept:hover {background-color:rgba(255,255,255,0.8)}
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b01fc7c2c39bbe8f87b4afa70ffe1cf2bb787310e1d22fcfed6ae527d4573bb?d=identicon)[nickdekruijk](/maintainers/nickdekruijk)

---

Top Contributors

[![nickdekruijk](https://avatars.githubusercontent.com/u/607302?v=4)](https://github.com/nickdekruijk "nickdekruijk (5 commits)")

### Embed Badge

![Health badge](/badges/nickdekruijk-cookiewall/health.svg)

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

###  Alternatives

[shipmonk/name-collision-detector

Simple tool to find ambiguous classes or any other name duplicates within your project.

362.1M34](/packages/shipmonk-name-collision-detector)[bostondv/bootstrap-ninja-forms

Adds Bootstrap classes to Ninja Forms

222.2k](/packages/bostondv-bootstrap-ninja-forms)

PHPackages © 2026

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