PHPackages                             outsidaz/laravel-data-anonymization - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. outsidaz/laravel-data-anonymization

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

outsidaz/laravel-data-anonymization
===================================

v1.1.6(9mo ago)68.1k↓25.9%3MITPHPPHP &gt;=8.0

Since Apr 14Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Outsidaz/laravel-data-anonymization)[ Packagist](https://packagist.org/packages/outsidaz/laravel-data-anonymization)[ Docs](https://github.com/outsidaz/laravel-data-anonymization)[ RSS](/packages/outsidaz-laravel-data-anonymization/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Data Anonymization
==========================

[](#laravel-data-anonymization)

This Laravel package facilitates data anonymization, which helps organizations protect privacy, comply with regulations, reduce the risk of data breaches, and enable safe data sharing:

1. Protecting privacy: Data contains sensitive information about individuals, such as their name, address, email, phone number, and other personally identifiable information (PII). Data anonymization helps protect the privacy of individuals by removing or masking their PII from the dataset.
2. Compliance with regulations: Many countries and industries have regulations that require organizations to protect the privacy of individuals by anonymizing their data. For example, the General Data Protection Regulation (GDPR) in the European Union requires organizations to protect the privacy of individuals by anonymizing their data.
3. Reducing the risk of data breaches: Data breaches can have serious consequences for organizations and individuals, including financial loss, reputational damage, and identity theft. By anonymizing data, organizations can reduce the risk of data breaches and minimize the impact of any data breaches that do occur.
4. Enabling data sharing: Anonymized data can be shared with other organizations or researchers without violating the privacy of individuals. This can help promote collaboration and innovation in fields such as healthcare, finance, and social sciences.

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

[](#installation)

You can install the package via composer:

```
composer require outsidaz/laravel-data-anonymization
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-data-anonymization-config"
```

This is the contents of the published config file:

```
return [
    'locale' => 'en_US',
    'chunk_size' => 1000,
    'models_path' => app_path('Models'),
    'models_namespace' => '\\App\\Models',
]
```

Usage
-----

[](#usage)

### Model based definitions

[](#model-based-definitions)

In any model that contains sensitive data use the `Anonymizable` trait and implement the `anonymizableAttributes` method:

```
