sidigi / laravel-db-masked-dump
Dump masked information from your database
2.0.0
2023-03-16 07:55 UTC
Requires
- php: ^7.4|^8.0
- ext-zlib: *
- doctrine/dbal: ^2.0|^3.0
- fakerphp/faker: ^1.15
- illuminate/console: ^7.0|^8.0|^9.0|^10.0
- illuminate/support: ^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- orchestra/testbench: ^6.21
- phpunit/phpunit: ^8.5
- spatie/phpunit-snapshot-assertions: ^4.2
README
A database dumping package that allows you to replace and mask columns while dumping your database.
You can :
- Replace
$table->replace();
- Ignore ids
$table->ignore(); $table->isIgnored();
- Mask
$table->mask();
- Create rule for replace
$table->replaceWhen();
- Get schema or full dump
$table->schemaOnly();
- Set priority tables for dump
$shema->priorityTables();
- Disable constrain for table
$table->disableConstrain(); $shema->disableAllConstrains();
- More
modifyQuery() fullDump() schemaOnly() shouldDumpData()
Installation
You can install the package via composer v2:
composer require sergefenix/laravel-db-masked-dump
Commands
php artisan vendor:publish --provider=FenixDumper\\LaravelMaskedDumper\\LaravelMaskedDumpServiceProvider php artisan db:masked-dump output.sql php artisan db:masked-dump output.sql --definition=sqlite php artisan db:masked-dump output.sql --gzip
Credits
License
The MIT License (MIT). Please see License File for more information.