Download the PHP package yo1l/laravel-data-anonymization without Composer
On this page you can find all versions of the php package yo1l/laravel-data-anonymization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yo1l/laravel-data-anonymization
More information about yo1l/laravel-data-anonymization
Files in yo1l/laravel-data-anonymization
Package laravel-data-anonymization
Short Description Laravel bridge for arrilot/data-anonymization
License MIT
Homepage https://github.com/arrilot/laravel-data-anonymization
Informations about the package laravel-data-anonymization
Laravel Data Anonymization
- This is a bridge package for a full integration of arrilot/data-anonymization into Laravel framework.
Installation
-
Add
"Database\\Anonymization\\": "database/anonymization/",
tocomposer.json -> autoload -> psr-4
php artisan anonymization:install
Usage
The package is designed to be as much consistent with Laravel built-in seeders as possible.
Bootstrapping
php artisan anonymization:install
creates two files:
1) database/anonymization/DatabaseAnonymizer.php
2) database/anonymization/UserTableAnonymizer.php
DatabaseAnonymizer
is an entry point into anonymization. It runs other anonymizers.
UsersAnonymizer
is a useful built-in example. You can modify it and create other anonymizers for other tables using generator.
Generator command
php artisan make:anonymizer AccountsAnonymizer
. Similar to make:seeder
Running the anonymization
Anonymization is performed using php artisan db:anonymize
command.
Its signature is identical with db:seed
command.
All versions of laravel-data-anonymization with dependencies
arrilot/data-anonymization Version ~1.0
illuminate/support Version >=8.0
illuminate/contracts Version >=8.0
illuminate/console Version >=8.0