PHPackages                             subdesign/laravel-gdpr-nullify - 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. subdesign/laravel-gdpr-nullify

ActiveLibrary

subdesign/laravel-gdpr-nullify
==============================

Easily nullify user data for GDPR compilance

1.0.0(7y ago)051MITPHP

Since Dec 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/subdesign/laravel-gdpr-nullify)[ Packagist](https://packagist.org/packages/subdesign/laravel-gdpr-nullify)[ Docs](https://github.com/subdesign/laravel-gdpr-nullify)[ RSS](/packages/subdesign-laravel-gdpr-nullify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel GDPR Nullify
====================

[](#laravel-gdpr-nullify)

If you are affected by GDPR, you may find yourself in situation, when someone ask you to delete his/her data. You don't need to delete their records, just hide the sensible fields. This way your database remains consistent (eg. for history, statistics) but you finally satisfy the request.

With this package you can easily "nullify" specific fields for any Eloquent Model.

Requirements
------------

[](#requirements)

Laravel 5.5

Installation
------------

[](#installation)

Install with composer

```
composer require subdesign/laravel-gdpr-nullify:^1.0.0
```

Setup
-----

[](#setup)

Add the following trait to your Eloquent model

```
use Subdesign\LaravelGdprNullify\GdprNullifyTrait;

class YourModel extends Model {

    use GdprNullifyTrait;

    ...
}
```

Next, add a property to this model which field(s) you want to nullify

```
protected $gdprFields = ['name', 'email'];
```

Usage
-----

[](#usage)

Use the `nullify()` method on a model instance

```
$user = App\User::find(1);

$user->nullify();
```

In the example, the `name` and `email` fields will be filled with random characters in the length of the database fields.

Dependency
----------

[](#dependency)

The package has a dependency which is automatically installed:

Credits
-------

[](#credits)

- [Barna Szalai](https://github.com/subdesign)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity60

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2698d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05bd66ff1577396f52eed671a80ec1d85803f4b55c8f9af8ebae464d1285944b?d=identicon)[bszalai](/maintainers/bszalai)

---

Tags

laravelgdpr

### Embed Badge

![Health badge](/badges/subdesign-laravel-gdpr-nullify/health.svg)

```
[![Health](https://phpackages.com/badges/subdesign-laravel-gdpr-nullify/health.svg)](https://phpackages.com/packages/subdesign-laravel-gdpr-nullify)
```

###  Alternatives

[devrabiul/laravel-cookie-consent

A GDPR-compliant cookie consent solution for Laravel applications with fully customizable cookie banners, granular consent control, and enterprise-grade compliance features.

17633.8k1](/packages/devrabiul-laravel-cookie-consent)[dialect/laravel-gdpr-compliance

GDPR compliant data portability and anonymization

56117.2k](/packages/dialect-laravel-gdpr-compliance)[scify/laravel-cookie-guard

A Laravel package that provides a Cookies consent floating window and publishes the Cookies for the different consent categories

13714.3k](/packages/scify-laravel-cookie-guard)[bfinlay/laravel-excel-seeder

Seed the database with Laravel using Excel, XLSX, XLS, CSV, ODS, Gnumeric, XML, HTML, SLK files

3944.4k](/packages/bfinlay-laravel-excel-seeder)[dreamfactory/df-core

DreamFactory(tm) Core Components

1651.7k20](/packages/dreamfactory-df-core)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
