baraja-core/personal-data-export

There is no license information available for the latest version (v1.0.1) of this package.

Tool for easy selection and export of user files in ZIP format.

v1.0.1 2022-03-21 12:16 UTC

This package is auto-updated.

Last update: 2024-10-08 17:47:55 UTC


README

Idea

Tool for easy selection and export of user files in ZIP format.

Within a single selector, you choose all user data (much of the data can also be created dynamically based on direct input), which is automatically converted into the specified directory structure and offers the file for download.

This tool is fully compliant with GDPR requirements.

How to use

Simply select data and run export:

$selection = (new PersonalDataSelection)
    ->addJson('foo.json', ['a' => 1, 'b' => 36])
    ->addJson('dir/file.json', ['message' => 'My content...'])
    ->addText('readme.md', 'Welcome to export!')
    ->addFile(__FILE__);

$selection->export();