nowo-tech/cookie-consent-bundle 问题修复 & 功能扩展

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

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

nowo-tech/cookie-consent-bundle

Composer 安装命令:

composer require nowo-tech/cookie-consent-bundle

包简介

Symfony bundle providing a GDPR cookie consent modal with category toggles and optional consent logging

README 文档

README

CI Packagist Version Packagist Downloads License PHP Symfony GitHub stars Coverage

Symfony bundle that renders a GDPR cookie consent modal with category toggles, AJAX form submission, optional consent logging, and configurable Doctrine table prefix.

Frontend behavior is implemented in TypeScript and built with Vite (make assetssrc/Resources/public/nowo-consent-modal.js).

Extracted and modernized from the podologiapriego.com implementation (FatalNetwork/ConnectHolland CookieConsentBundle fork).

Documentation

Additional documentation

Quick start

composer require nowo-tech/cookie-consent-bundle
# config/packages/nowo_cookie_consent.yaml
nowo_cookie_consent:
    table_prefix: 'app_'   # optional; yields app_nowo_cookie_consent_log
    use_logger: true
{# templates/base.html.twig #}
{% if not nowo_cookie_consent_is_saved() %}
    {{ render(path('nowo_cookie_consent.show_if_not_set')) }}
{% endif %}

Install public assets:

php bin/console assets:install

Demo

make -C demo up-symfony8
# Bootstrap demo: http://localhost:8014

make -C demo up-symfony8-tailwind
# Tailwind demo: http://localhost:8015
  • demo/symfony8/ — FrankenPHP Symfony 8 app with Bootstrap 5
  • demo/symfony8-tailwind/ — same demo with Tailwind CSS and ui_theme: tailwind

See Demo with FrankenPHP for development vs. production worker mode.

Tests and coverage

Language Lines (approx.) Command
PHP ~100% make test-coverage
TypeScript ~96% make test-ts
make test
make test-coverage
make test-ts
make assets
make release-check

PHP coverage target is ~100% (currently ~100%; see Release); exclusions must be justified in phpunit.xml.dist.

Found this useful?

If this bundle helps your project, consider starring the repository on GitHub or installing from Packagist.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固