承接 w3designweb/laravel-cookie-consent 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

w3designweb/laravel-cookie-consent

Composer 安装命令:

composer require w3designweb/laravel-cookie-consent

包简介

This package for Laravel allows you to manage user cookies consents in compliance with privacy regulations.

README 文档

README

Latest Version on Packagist Software License Scrutinizer Code Quality Quality Score Build Total Downloads

With this package it will be easy for you to declare all the cookies used on your website, asking for consent through a banner that will be activated automatically through a Laravel Middleware.

Each user can accept or not the different types of cookies, thus deciding whether to enable the related functions, and also can change the consents given over time.

Installation

Require the package with Composer:

composer require w3designweb/laravel-cookie-consent

Laravel

For Laravel 5.4 and lower, add the service provider to config/app.php:

W3designweb\LaravelCookieConsent\LaravelCookieConsentServiceProvider::class,

Lumen

Add the service provider to bootstrap/app.php:

$app->register(W3designweb\LaravelCookieConsent\LaravelCookieConsentServiceProvider::class);

Configuration

Then, add this configuration to your .env file to enable the cookie banner. By default the value is set to "true", but it will be sufficient to indicate "false" to not show the cookie banner.

COOKIE_CONSENT_ENABLED=true
COOKIE_CONSENT_NAME=your_cookie_consent_name

After that, add the middleware in the group of your choice, inside the App/Http/Kernel.php file, per example:

'web' => [
    ...
    W3designweb\LaravelCookieConsent\Http\Middleware\LaravelCookieConsent::class,
    ...
],

Publish the package files to manage your cookies list in the config file, the blade template on the view file and the assets in CSS and JS file:

php artisan vendor:publish --provider="W3designweb\LaravelCookieConsent\LaravelCookieConsentServiceProvider"

统计信息

  • 总下载量: 189
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固