cerpus/gdpr 问题修复 & 功能扩展

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

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

cerpus/gdpr

最新稳定版本:0.5.2

Composer 安装命令:

composer create-project cerpus/gdpr

包简介

A package that helps with implementing GDPR compliance in the EdLib ecosystem

README 文档

README

#GDPR helper service This is a Laravel package to help implement GDPR compliance in a system

Installation

composer require cerpus/gdpr

If you are running on Laravel 5.4 or less you must add the service provider to config/app.php.

'providers' => [
    ...
    Cerpus\Gdpr\GdprServiceProvider::class,

];

In Laravel 5.5 and up the package will auto register.

Publish artifacts to your app.

php artisan vendor:publish --provider="Cerpus\Gdpr\GdprServiceProvider"

This will publish the config file to config/gdpr.php. The GdprService will have a default deletion file, and you have to make a class that implements the Cerpus\Gdpr\Contracts\GdprDeletionContract interface. Change the config/gdpr.php file to point to your implementation.

<?php
return [
  'deletion-class' => Cerpus\Gdpr\DummyDeletion::class,
  ...
];

php artisan migrate to run the published migration(s).

Usage

To implement the GDPR deletion in your system create a class somewhere in your app that implements the Cerpus\Gdpr\Contracts\GdprDeletionContract.

See src/DummyDeletion.php for the default example. You can copy this and rename it to start you deletion class.

As an example if you create a file in app/Gdpr/GdprDelete.php you must update the config/gdpr.php like this:

return [
  'deletion-class' => App\Gdpr\GdprDelete::class,
  ...
];

The delete method will receive a GdprDeletionRequest as parameter. The request itself is in $deletionRequest->payload and will at least include an AuthId (userId).

You should log the progress of the deletion using $deletionRequest->log('processing', <your message here>); at appropriate times.

License

This package is released under the GNU General Public License 3.0. See the LICENSE file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2021-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固