Search by

php-anonymizer / anonymizer-personas

tliesche

Fixed European persona strategies for PHP Anonymizer

Package info

github.com/toniliesche/php-anonymizer-personas

pkg:composer/php-anonymizer/anonymizer-personas

Statistics

Installs: 4

Dependents: 0

Suggesters: 2

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:05 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.

Fixed European placeholder personas for deterministic anonymization. Requires PHP 8.5+ and the core package, which Composer installs automatically.

composer require php-anonymizer/anonymizer-personas

PersonaReplacementStrategyFactory::create($locale) provides stable IDs persona.name, persona.first_name, persona.last_name, persona.email, persona.username, persona.company, persona.phone, persona.street, persona.street_number, persona.city, persona.postcode, and persona.country. Supported base locales are en, de, es, fr, it, nl, and pt (British, German, Spanish, French, Italian, Dutch, and Portuguese personas). Regional catalogs are en_IE, de_AT, de_CH, and nl_BE; matching base-region forms such as en_GB, de_DE, nl_NL, and pt_PT are accepted. Locale input is trimmed and case-insensitive, and hyphens are accepted in place of underscores. Other regional combinations, such as en_US and pt_BR, are rejected. Values are fixed placeholders, not real-world identity records; email addresses use the non-deliverable example.invalid domain.

See the package-local usage guide.