PHPackages                             joonas1234/laravel-anonymize-db - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. joonas1234/laravel-anonymize-db

ActiveProject[Validation &amp; Sanitization](/categories/validation)

joonas1234/laravel-anonymize-db
===============================

Anonymize-db is Laravel package that replaces sensitive date with fake data

v0.1(5y ago)1161MITPHPPHP ^7.2|^8.0

Since Nov 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/joonas1234/laravel-anonymize-db)[ Packagist](https://packagist.org/packages/joonas1234/laravel-anonymize-db)[ RSS](/packages/joonas1234-laravel-anonymize-db/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Anonymize DB with power of Faker
================================

[](#anonymize-db-with-power-of-faker)

### Installation

[](#installation)

`composer require --dev joonas1234/laravel-anonymize-db`

### Publish the config:

[](#publish-the-config)

`php artisan vendor:publish --tag=config --provider=Joonas1234\\LaravelAnonymizeDB\\AnonymizeDBServiceProvider`

This will create `config\anonymize-db.php` file for you. You can use this file to configure which columns should be anonymized

Config consists of `tables` and `fakerProviders` arrays. `tables` is used to define which tables and columns should be anonymized. For example if you want to anonymize register numbers and owner names in `cars` -table, you can do it like this:

```
