directorytree/anonymize
Anonymize swaps sensitive Eloquent model attributes with realistic Faker data. Deterministic per model ID, cached for performance, and easy to toggle globally or per instance—ideal for dev, demos, and safely sharing production-like datasets.
/demo).Adopt When:
Look Elsewhere If:
*"This package solves a critical privacy and operational challenge: how to safely share or develop against sensitive user data without risking leaks. By automating the replacement of PII with realistic fake data, we can:
It’s a low-risk, high-reward investment: a single Composer install replaces weeks of custom work, with MIT licensing and active maintenance."*
*"This is a drop-in solution for anonymizing Eloquent models and JSON resources in Laravel. Here’s why it’s a no-brainer:
safeEmail(), address()).User with Post relationships).Trade-offs:
getAnonymizedAttributes() method).Next Steps:
composer require directorytree/anonymize.Anonymized trait to key models (e.g., User, Customer).session('anonymize')).Let’s prototype this for our [highest-risk data-sharing scenario] and measure the time saved."*
How can I help you explore Laravel packages today?