PHPackages                             specshaper/gdpr-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. specshaper/gdpr-bundle

ActiveSymfony-bundle[Security](/categories/security)

specshaper/gdpr-bundle
======================

A Symfony 5|6|7 bundle for classifying entity parameters according to GDPR requirements and encrypting data

v2.1.3(6y ago)666.5k11[4 issues](https://github.com/mogilvie/GdprBundle/issues)MITPHPPHP &gt;=7.1

Since Feb 1Pushed 5mo ago11 watchersCompare

[ Source](https://github.com/mogilvie/GdprBundle)[ Packagist](https://packagist.org/packages/specshaper/gdpr-bundle)[ Docs](https://github.com/mogilvie/GdprBundle)[ RSS](/packages/specshaper-gdpr-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (11)Versions (9)Used By (0)

GDPR Bundle
===========

[](#gdpr-bundle)

A bundle to aid with the General Data Protection Regulation requirements.

Features include:

- Written for Symfony version 3|4|5|6, current master and v3.0 is Symfony 6
- Provides annotation for adding to entity parameter doc blocks - this method is being deprecated.
- Uses a PersonalData object and data transformers.
- Records values for Data Protection Impact Assessments of entity parameters.
- Uses SpecShaper\\EncryptBundle to encrypt sensitive data

Version History
---------------

[](#version-history)

### Version 3

[](#version-3)

Updated for Symfny 5.4|6 and PHP8

### Version 2

[](#version-2)

Version 2 uses a PersonalData entity to store the GDPR parameters associated with the personal data parameter.

A custom twig function can be used to:

- Decrypt any encrypted data
- Display current data in its correct format.
- Display deleted/aggregated/annonymised data once it has been sanitised

Version 2 Features:

- Create a storage entity
- Create twig templates for entity to handle displaying expired data.
- Create a migration command to create new database fields, and convert PersonalData attributes to PersonalData entity rows.
- Create disposal classes and service
- Create a command to dispose of data
- Implement a cron task to dispose of data
- Generate activity report
- Create consent forms
- Generate consent report
- Export data command

### Version 1

[](#version-1)

Version 1 of this project used annotations to classify entity parameter personal data.
This unfortunately could not be extended to managing live data, it runs into problems where data become expired. What should get displayed instead? How can live data status be reported with annotations?

Version 1 Features:

- Generate a entity parameter coverage report.
- Generate a summary report of all entity parameters and GDPR annotations.

**Warning**

- This bundle has not been unit tested.

Documentation
-------------

[](#documentation)

The source of the documentation is stored in the `Resources/doc/` folder in this bundle.

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

About
-----

[](#about)

GdprBundle has been written for [Parolla](https://www.parolla.ie) website to encode users private data.

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/mogilvie/HelpBundle/issues).

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the [Symfony Standard Edition](https://github.com/symfony/symfony-standard)to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

Installation
============

[](#installation)

Step 1: Download the bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:

```
$ composer require specshaper/gdpr-bundle dev-master

```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Enable the bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
