The iban-bic anonymizer is a multi-column anonymizer designed to anonymize an IBAN and a BIC code simultaneously. You can choose to anonymize just the IBAN, just the BIC, or both.
Available Columns
iban: The International Bank Account Number.bic: The Bank Identifier Code.
Configuration Options
| Option | Type | Description |
|---|
country | string | Two-letter country code used for generating the IBAN with target country validation rules. Default is fr. |
sample_size | int | The size of the generated random sample table. Default is 500. |
Implementation Methods
You can configure this anonymizer using either a global db_tools.config.yaml file, a Symfony-specific config/anonymization.yaml file, or via PHP Attributes on your Doctrine entities.
# Example configuration structure
anonymization:
default:
customer:
iban:
target: table
anonymizer: iban-bic
options:
iban: 'account_iban'
bic: 'account_bic'