php-anonymizer / anonymizer-symfony-serializer
Symfony Serializer adapter for PHP Anonymizer
Package info
github.com/toniliesche/php-anonymizer-symfony-serializer
pkg:composer/php-anonymizer/anonymizer-symfony-serializer
Requires
- php: ^8.5
- php-anonymizer/anonymizer: ^2.0
- symfony/serializer: ^8.1.9
Requires (Dev)
None
Suggests
- php-anonymizer/anonymizer-bundle: Register the Serializer adapter automatically in Symfony
- php-anonymizer/anonymizer-laravel: Register the Serializer adapter 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 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.