定制 indigophp/cookie-consent-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

indigophp/cookie-consent-bundle

最新稳定版本:v0.2.0

Composer 安装命令:

composer require indigophp/cookie-consent-bundle

包简介

Symfony Bundle for the popular Cookie Consent plugin

关键字:

README 文档

README

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

Symfony Bundle for the popular Cookie Consent plugin.

Install

Via Composer

$ composer require indigophp/cookie-consent-bundle

Enable the bundle in your kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Indigo\Bundle\CookieConsentBundle\IndigoCookieConsentBundle(),
    );
}

Usage

Add Cookie Consent to your website.

Configure the bundle:

indigo_cookie_consent:
    options:
        # any options you would pass to the plugins (except labels: message, dismiss, learnMore)
        # see https://silktide.com/tools/cookie-consent/docs/installation
    script: false # You can turn script off or pass a script location (eg. to use a specific version)

Note: labels are automatically translated. Translations are in IndigoCookieConsentBundle domain (PRs welcome).

Use the cookie_consent_render method in your Twig template: {{ cookie_consent_render() }}

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please contact us at security@indigophp.com.

Credits

Many thanks to David Buchmann for helping me with my First Symfony Bundle (tm).

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 15
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-07