spatie/laravel-personal-data-export – плагин для laravel создает zip архив с персональными данными

// in your User model

public function selectPersonalData(PersonalDataSelection $personalDataSelection) {
    $personalDataSelection
        ->add('user.json', ['name' => $this->name, 'email' => $this->email])
        ->addFile(storage_path("avatars/{$this->id}.jpg");
        ->addFile('other-user-data.xml', 's3');
}

https://github.com/spatie/laravel-personal-data-export