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

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

ez-laravel/cookie-consent
=========================

Easy Laravel Cookie Consent

v1.0.1(5y ago)029MITVue

Since Jun 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ez-laravel/cookie-consent)[ Packagist](https://packagist.org/packages/ez-laravel/cookie-consent)[ RSS](/packages/ez-laravel-cookie-consent/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

EZ Laravel Cookie Consent
=========================

[](#ez-laravel-cookie-consent)

Simple package to display a cookie consent dialog in your Laravel application.

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

[](#installation)

Run the following command in your project directory to install the package:

```
composer require ez-laravel/cookie-consent

```

Run the following command to publish the vue components &amp; views of the package so you can customize these to your specific application:

```
php artisan vendor:publish --provider="EZ\\CookieConsent\\Providers\\CookieConsentServiceProvider" --tag=frontend

```

Make sure the Vue.js component is loaded; I usually use the following code in `app.js` to load all available components automatically:

```
// Automatically load all vue components
const files = require.context('./', true, /\.vue$/i);
files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default));
```

Ironically this package uses a cookie to store the users answer; if you wish to customize the name of the cookie you should publish the configure file and override the `cookie_name` property.

```
php artisan vendor:publish --provider="EZ\\CookieConsent\\Providers\\CookieConsentServiceProvider" --tag=config

```

Usage
-----

[](#usage)

All you have to do now is include the cookie consent dialog partial in your layout and it will be shown to the user until they either agree or disagree with the dialog.

```
@include("cookieconsent::dialog")
```

Contributing
------------

[](#contributing)

If you want to contribute feel free to submit a pull request!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~0 days

Total

2

Last Release

2147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55e5124004792b4439022af1fd07ba61116981eee7711009eec2b3fc8dfcd651?d=identicon)[verheijen](/maintainers/verheijen)

---

Top Contributors

[![0x029Ax0](https://avatars.githubusercontent.com/u/17317618?v=4)](https://github.com/0x029Ax0 "0x029Ax0 (4 commits)")

### Embed Badge

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

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

###  Alternatives

[stuttter/wp-multi-network

Provides a Network Management Interface for global administrators in WordPress Multisite installations.

23324.1k1](/packages/stuttter-wp-multi-network)[jtgrimes/less4laravel

Bringing lessphp into Laravel

193.4k](/packages/jtgrimes-less4laravel)[xandros15/slim-pagination

simple pagination for slim3

118.0k](/packages/xandros15-slim-pagination)

PHPackages © 2026

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