sextanet/laravel-database-copy
Laravel Database Copy by SextaNet provides Artisan commands for copying database contents between Laravel connections, making it easier to refresh development or staging environments with configurable table selection and repeatable, safe data transfers.
db:copy script plus a scrubber. This package is a candidate to replace that homegrown script, so the PM decision is "maintain our own shell/PHP glue" vs. "adopt a dependency and contribute upstream."Adopt when most of the following hold:
Look elsewhere when:
For executives: Engineering spends recurring time either hand-crafting test data or, worse, copying production data into lower environments without a reliable scrubbing step — a compliance exposure and a velocity tax. This package gives us a repeatable, configurable Laravel-native way to copy a database and anonymize it as part of that copy, including choosing which database connection the anonymized data lands in. It's a small, low-cost dependency that removes a recurring manual chore and strengthens our story in security and privacy reviews.
For engineering: sextanet/laravel-database-copy handles database copy plus anonymization through configuration and Artisan commands. Version 1.0.1 adds a configurable connection for the anonymization step, which means we can define a source and a scrubbed destination explicitly — good for pull-from-replica, write-to-staging workflows and for keeping masked data out of the wrong database by default. It is early-stage (1.0.1, single maintainer), so: pin the version, review before rollout, keep our config in version control, and treat it as a thin layer we can swap out. Recommendation is a time-boxed pilot on one non-critical environment before standardizing.
How can I help you explore Laravel packages today?