Search by

php-anonymizer / anonymizer-symfony-serializer

tliesche

Symfony Serializer adapter for PHP Anonymizer

Package info

github.com/toniliesche/php-anonymizer-symfony-serializer

pkg:composer/php-anonymizer/anonymizer-symfony-serializer

Statistics

Installs: 5

Dependents: 1

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:10 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 adapter requires PHP 8.5+, the core package, and symfony/serializer 8.1.9 or later in the 8.1 line. It adds object support to the core AnonymizerInterface: arrays use the core engine, while objects are normalized, anonymized, then denormalized into a new instance through an application-owned Symfony Serializer implementing both normalizer and denormalizer interfaces. The adapter creates a new instance by default. Symfony Serializer context options are forwarded as supplied, so avoid passing an object_to_populate target when source immutability matters. Serializer support comes from this optional adapter; the core remains framework-free.

See the package-local usage guide.