Download the PHP package atabix/laravel-data-anonymization without Composer
On this page you can find all versions of the php package atabix/laravel-data-anonymization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atabix/laravel-data-anonymization
More information about atabix/laravel-data-anonymization
Files in atabix/laravel-data-anonymization
Package laravel-data-anonymization
Short Description Laravel bridge for arrilot/data-anonymization
License MIT
Homepage https://github.com/atabix/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/anonymizatio
n tocomposer.json -> autoload -> classmap
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.
UserTableAnonymizer
is a useful built-in example. You can modify it and create other anonymizers for other table using generator.
Generator command
php artisan make:anonymizer ProfileTableAnonymizer
. 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 5.*|6.*|7.*
illuminate/contracts Version 5.*|6.*|7.*
illuminate/console Version 5.*|6.*|7.*
phpunit/phpunit Version ^9.0
mockery/mockery Version ^1.3