PHP code example of baraja-core / personal-data-export
1. Go to this page and download the library: Download baraja-core/personal-data-export library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
baraja-core / personal-data-export example snippets
$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();