Examples

Library examples

In this repository you can find three example

Of course, you will also find many ideas in the tests.

Whole sensitization example

example/WholeStrategy

make build-php ARG="--no-cache"
make upd
make composer ARG="install"
make enter
php example/WholeStrategy/example.php | jq

Partial sensitization example

example/PartialStrategy

make build-php ARG="--no-cache"
make upd
make composer ARG="install"
make enter
php example/PartialStrategy/example.php | jq

Custom sensitization example

example/CustomStrategy

make build-php ARG="--no-cache"
make upd
make composer ARG="install"
make enter
php example/CustomStrategy/example.php | jq

Demo project

For a complete and working demo you can check out at this Symfony 6 project: broadway-sensitive-serializer-demo. It is divided into three branches: