承接 pixelopen/sulu-gdprbundle 相关项目开发

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

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

pixelopen/sulu-gdprbundle

最新稳定版本:2.5.0

Composer 安装命令:

composer require pixelopen/sulu-gdprbundle

包简介

GDPR tools for Sulu

README 文档

README

GitHub release (with filter) Dependency Quality Gate Status

Presentation

A Sulu bundle to easily manage the GDPR. It also allows you to manage the consent banner by using the Tarteaucitron consent management system.

Requirements

  • PHP >= 8.0
  • Sulu >= 2.5.*
  • Symfony >= 5.4
  • Composer

Installation

Install the bundle

Execute the following composer command to add the bundle to the dependencies of your project:

composer require pixelopen/sulu-gdprbundle

Enable the bundle

Enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

return [
    /* ... */
    Pixel\GDPRBundle\GDPRBundle::class => ['all' => true],
];

Update schema (for dev environnement)

bin/console do:sch:up --force

Bundle Config

Define the Admin Api Route in routes_admin.yaml

gdpr.setting_api:
  type: rest
  prefix: /admin/api
  resource: pixel_gdpr.settings_route_controller
  name_prefix: gdpr.

Use

The bundle is only composed of the settings, which make the management of the GDPR very easy.

To use the GDPR management of the bundle, just check the "Use cookies management?". All the other options should be display.

The Services section will take care to manage the different cookies scripts.

The Parameters section will help you manage the Tarteaucitron banner, which displays the consent banner. There are plenty of parameters, so don't hesitate to visit the repository of Tarteaucitron.

Twig extension

The bundle comes with two twig functions:

gdpr_settings(): returns the settings of the bundle. No parameters are required.

Example of use:

{% set gdprSettings = gdrp_settings() %}
{{ gdprSettings.useCookiesHandleing }}

gdprScripts(): renders the consent banner. No parameters are required.

Example of use:

{{ gdpr_scripts() }}

Contributing

You can contribute to this bundle. The only thing you must do is respect the coding standard we implements. You can find them in the ecs.php file.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-28