blomstra/gdpr

Gives user more control over their data

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 7

Forks: 4

Type:flarum-extension

dev-master 2022-11-04 10:29 UTC

This package is auto-updated.

Last update: 2022-11-04 10:29:33 UTC


README

This extension allows users increasing control over their data.

Installation or update

Install manually with composer:

composer require blomstra/flarum-gdpr

Use

The user has a new button in their settings - account section called "Export Data". Upon clicking this button a modal will appear showing that user data can be exported. Once the export has been generated the user is notified through email with a unique, temporary link.

For developers

You can easily register a new Data type by implementing the Contract Blomstra\Gdpr\Contracts\DataType and then using the extender Blomstra\Gdpr\Extend\UserData:

<?php

use Blomstra\Gdpr\Extend\UserData;
use Your\Own\DataType;

return [
    new UserData(DataType::class)
];

The implementation you create needs a export method, it will receive a ZipArchive resource. You can use that to add any strings or actual files to the archive. Make sure to properly name the file and always prefix it with your extension slug (blomstra-something-filename).

Links

FAQ & Recommendations

  • Generating the zip archive can be pushed to queue functionality. This is exceptionally important on larger communities and with more extensions that work with the gdpr extension to allow data exports.

Links