php-anonymizer / anonymizer-faker
Faker strategies for PHP Anonymizer
Package info
github.com/toniliesche/php-anonymizer-faker
pkg:composer/php-anonymizer/anonymizer-faker
Requires
- php: ^8.5
- fakerphp/faker: ^1.24.1
- php-anonymizer/anonymizer: ^2.0
- webmozart/assert: ^2.5
Requires (Dev)
None
Suggests
- php-anonymizer/anonymizer-bundle: Register Faker strategies automatically in Symfony
- php-anonymizer/anonymizer-laravel: Register Faker strategies automatically in Laravel
Provides
None
Conflicts
None
Replaces
None
README
Project Status
Project Info
Repo Status
License
This project is released under the MIT license.
See the LICENSE for more information.
The package provides Faker-backed replacement strategies for common personal and address fields. It requires PHP 8.5+, the core package, and FakerPHP; all are installed by Composer:
composer require php-anonymizer/anonymizer-faker
Use FakerReplacementStrategyFactory::create($locale, $seed) and pass the
resulting strategies to the core anonymizer. The locale follows FakerPHP's
locale support. A seed makes values reproducible for the same FakerPHP version
and call sequence; it does not promise identical output across dependency
versions. IDs are faker.building_number, faker.city, faker.company,
faker.country, faker.email, faker.first_name, faker.house_number,
faker.last_name, faker.name, faker.password, faker.postcode,
faker.street, faker.street_number, faker.username, and faker.zip.
faker.postcode and faker.zip use the same Faker formatter.
See the package-local usage guide.