ajaz/cookie-consent-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ajaz/cookie-consent-php

Composer 安装命令:

composer require ajaz/cookie-consent-php

包简介

A simple PHP cookie consent widget that helps to EU Cookie Law

README 文档

README

PHP Cookie Consent Widget

Installation Guide

composer require ajaz/cookie-consent-php

ajaz/cookie-consent-php

How to use (Below PHP code should be apply in Head section)

use Ajaz\CookieConsent\Widget;

require 'vendor/autoload.php';

<?php echo Widget::run([
	'websiteName'=>'Your website name',
	'noticeBannerType'=> Widget::INTERSTITIAL_NOTICE_BANNER,
	'consentType'=> Widget::EXPRESS,
	'palette'=> Widget::DARK_SKIN,
	'cookiesPolicyUrl'=> 'http://www.example.com/cookie-policy',
]); ?>

Configuration Options

option description default type
websiteName Your website name Required STRING
noticeBannerType Define the cookie consent popup style Options Widget::INTERSTITIAL_NOTICE_BANNER, Widget::SIMPLE_NOTICE_BANNER, Widget::HEADLINE_NOTICE_BANNER, Widget::STANDALONE_NOTICE_BANNER Widget::INTERSTITIAL_NOTICE_BANNER STRING
consentType Defines the cookie consent popup text style Widget::EXPRESS STRING
palette Cookie consent popup theme style by default dark skin for light skin Widget::LIGHT_SKIN Widget::DARK_SKIN STRING
language Cookie consent popup default language pass language code example en,fr Widget::LANG_EN STRING
cookiesPolicyUrl Your website cookie policy page url Required STRING

Worth knowing

Widgets throws an InvalidArgumentException if you define an invalid property in Widget::run() method

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固