Search by

php-anonymizer / anonymizer-faker

tliesche

Faker strategies for PHP Anonymizer

Package info

github.com/toniliesche/php-anonymizer-faker

pkg:composer/php-anonymizer/anonymizer-faker

Statistics

Installs: 4

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

2.0.2 2026-10-26 06:38 UTC

This package is auto-updated.

Last update: 2026-10-26 07:46:01 UTC


README

Project Status

Tests Code Coverage Mutation testing badge Downloads Stars

Project Info

PHP Version Latest Version License

Repo Status

Last Commit Issues

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.