PHPackages                             matiux/broadway-sensitive-serializer-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. matiux/broadway-sensitive-serializer-bundle

ActiveSymfony-bundle[Parsing &amp; Serialization](/categories/parsing)

matiux/broadway-sensitive-serializer-bundle
===========================================

Bundle for serializer implementation with support for data sensitization

v1.0.1(3y ago)0130MITPHPPHP ^7.4|^8

Since Jan 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/matiux/broadway-sensitive-serializer-bundle)[ Packagist](https://packagist.org/packages/matiux/broadway-sensitive-serializer-bundle)[ RSS](/packages/matiux-broadway-sensitive-serializer-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (17)Versions (12)Used By (0)

Broadway sensitization support Bundle
=====================================

[](#broadway-sensitization-support-bundle)

[![check dependencies](https://github.com/matiux/broadway-sensitive-serializer-bundle/actions/workflows/check-dependencies.yml/badge.svg)](https://github.com/matiux/broadway-sensitive-serializer-bundle/actions/workflows/check-dependencies.yml/badge.svg)[![test](https://github.com/matiux/broadway-sensitive-serializer-bundle/actions/workflows/tests.yml/badge.svg)](https://github.com/matiux/broadway-sensitive-serializer-bundle/actions/workflows/tests.yml/badge.svg)[![codecov](https://camo.githubusercontent.com/e02420d9842c311e810bb81b4b97ff4c3770b624d5e45dc26bbf5d36010439f2/68747470733a2f2f636f6465636f762e696f2f67682f6d61746975782f62726f61647761792d73656e7369746976652d73657269616c697a65722d62756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/matiux/broadway-sensitive-serializer-bundle)[![type coverage](https://camo.githubusercontent.com/ed0a250d1c20c0826523a8d0e755f198f61aed38e2594518eb0738a55754ecd3/68747470733a2f2f73686570686572642e6465762f6769746875622f6d61746975782f62726f61647761792d73656e7369746976652d73657269616c697a65722d62756e646c652f636f7665726167652e737667)](https://shepherd.dev/github/matiux/broadway-sensitive-serializer-bundle)[![psalm level](https://camo.githubusercontent.com/f85d7ae21c41f1447061856fe3fa35a066209870a00a18df6646f77dcf255ac8/68747470733a2f2f73686570686572642e6465762f6769746875622f6d61746975782f62726f61647761792d73656e7369746976652d73657269616c697a65722d62756e646c652f6c6576656c2e737667)](https://shepherd.dev/github/matiux/broadway-sensitive-serializer-bundle)[![security analysis status](https://github.com/matiux/broadway-sensitive-serializer-bundle/actions/workflows/security-analysis.yml/badge.svg)](https://github.com/matiux/broadway-sensitive-serializer-bundle/actions/workflows/security-analysis.yml/badge.svg)[![coding standards status](https://github.com/matiux/broadway-sensitive-serializer-bundle/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/matiux/broadway-sensitive-serializer-bundle/actions/workflows/coding-standards.yml/badge.svg)

This bundle is the wrapper for the Broadway [Sensitive Serializer library](https://github.com/matiux/broadway-sensitive-serializer). You can find more info on the base library [here](https://github.com/matiux/broadway-sensitive-serializer/wiki).

### Setup for development

[](#setup-for-development)

```
git clone https://github.com/matiux/broadway-sensitive-serializer-bundle.git && cd broadway-sensitive-serializer-bundle
cp docker/docker-compose.override.dist.yml docker/docker-compose.override.yml
rm -rf .git/hooks && ln -s ../scripts/git-hooks .git/hooks
```

### Install dependencies to run test or execute examples

[](#install-dependencies-to-run-test-or-execute-examples)

```
make build-php ARG="--no-cache"
make upd
make composer ARG="install"
```

### Run test

[](#run-test)

```
make build-php ARG="--no-cache"
make upd
make phpunit
```

### Whole Strategy configuration

[](#whole-strategy-configuration)

[Read the docs](https://github.com/matiux/broadway-sensitive-serializer/wiki/%5BIT%5D-3.Moduli#whole-strategy)

```
broadway_sensitive_serializer:
  aggregate_master_key: 'm4$t3rS3kr3tk31' # Master key to encrypt the keys of aggregates. Get it from an external service or environment variable
  key_generator: open-ssl # For now is the only one generator implemented
  # To use the DBAL  implementation, install matiux/broadway-sensitive-serializer-dbal package with composer
  aggregate_keys: broadway_sensitive_serializer.aggregate_keys.dbal
  #aggregate_keys: broadway_sensitive_serializer.aggregate_keys.in_memory # Default implementation, of little use outside of testing
  data_manager:
    name: AES256 # For now, it is the only encryption strategy implemented
    key: null # Encryption key to sensitize data. If null you will need to pass the key at runtime. This is the convenient way, check out the examples and wiki on main library
    iv: null # Initialization vector. If null it will be generated internally and iv_encoding must be set to true. This is the convenient way, check out the examples and wiki on main library
    iv_encoding: true # Encrypt the iv and is appends to encrypted value. It makes sense to set it to true if the iv option is set to null. This is the convenient way, check out the examples and wiki on main library
    #--- Alternatively -----
    #data_manager:
    #  name: AES256
    #  parameters:
    #    AES256:
    #      key: null
    #      iv: null
    #      iv_encoding: true
  strategy:
    name: whole
    aggregate_key_auto_creation: true # Enable AggregateKey model auto creation. This is the convenient way, check out the examples and wiki on main library
    value_serializer: json # Strategy to serialize payload's values. Default json
    excluded_id_key: id # The key of the aggregate id which should not be encrypted
    excluded_keys: # List of keys to be excluded from encryption
      - occurred_at
    events: # List of events supported by the strategy
      - SensitiveUser\User\Domain\Event\AddressAdded
      - SensitiveUser\User\Domain\Event\UserRegistered
  #--- Alternatively -----
  #strategy:
  #  name: whole
  #  parameters:
  #    whole:
  #      aggregate_key_auto_creation: true
  #      value_serializer: json
  #      excluded_id_key: id
  #      excluded_keys:
  #        - occurred_at
  #      events:
  #        - SensitiveUser\User\Domain\Event\AddressAdded
  #        - SensitiveUser\User\Domain\Event\UserRegistered
```

### Partial Strategy configuration

[](#partial-strategy-configuration)

[Read the docs](https://github.com/matiux/broadway-sensitive-serializer/wiki/%5BIT%5D-3.Moduli#partial-strategy)

```
broadway_sensitive_serializer:
  aggregate_master_key: 'm4$t3rS3kr3tk31' # Master key to encrypt the keys of aggregates. Get it from an external service or environment variable
  key_generator: open-ssl # For now is the only one generator implemented
  # To use the DBAL  implementation, install matiux/broadway-sensitive-serializer-dbal package with composer
  aggregate_keys: broadway_sensitive_serializer.aggregate_keys.dbal
  #aggregate_keys: broadway_sensitive_serializer.aggregate_keys.in_memory # Default implementation, of little use outside of testing
  data_manager:
    name: AES256 # For now, it is the only encryption strategy implemented
    key: null # Encryption key to sensitize data. If null you will need to pass the key at runtime. This is the convenient way, check out the examples and wiki on main library
    iv: null # Initialization vector. If null it will be generated internally and iv_encoding must be set to true. This is the convenient way, check out the examples and wiki on main library
    iv_encoding: true # Encrypt the iv and is appends to encrypted value. It makes sense to set it to true if the iv option is set to null. This is the convenient way, check out the examples and wiki on main library
    #--- Alternatively -----
    #data_manager:
    #  name: AES256
    #  parameters:
    #    AES256:
    #      key: null
    #      iv: null
    #      iv_encoding: true
  strategy:
    name: partial
    aggregate_key_auto_creation: true # Enable AggregateKey model auto creation. This is the convenient way, check out the examples and wiki on main library
    value_serializer: json # Strategy to serialize payload's values. Default json
    events: # List of events supported by the strategy
      - SensitiveUser\User\Domain\Event\AddressAdded:
        - address # List of keys to sensitize
      - SensitiveUser\User\Domain\Event\UserRegistered:
        - name
        - surname
  #--- Alternatively -----
  #strategy:
  #  name: partial
  #  parameters:
  #    partial:
  #      aggregate_key_auto_creation: true
  #      value_serializer: json
  #      events:
  #        - SensitiveUser\User\Domain\Event\AddressAdded:
  #           - address
  #        - SensitiveUser\User\Domain\Event\UserRegistered:
  #           - name
  #           - surname
```

### Custom Strategy configuration

[](#custom-strategy-configuration)

[Read the docs](https://github.com/matiux/broadway-sensitive-serializer/wiki/%5BIT%5D-3.Moduli#custom-strategy)

```
broadway_sensitive_serializer:
  aggregate_master_key: 'm4$t3rS3kr3tk31' # Master key to encrypt the keys of aggregates. Get it from an external service or environment variable
  key_generator: open-ssl # For now is the only one generator implemented
  # To use the DBAL  implementation, install matiux/broadway-sensitive-serializer-dbal package with composer
  aggregate_keys: broadway_sensitive_serializer.aggregate_keys.dbal
  #aggregate_keys: broadway_sensitive_serializer.aggregate_keys.in_memory # Default implementation, of little use outside of testing
  data_manager:
    name: AES256 # For now, it is the only encryption strategy implemented
    key: null # Encryption key to sensitize data. If null you will need to pass the key at runtime. This is the convenient way, check out the examples and wiki on main library
    iv: null # Initialization vector. If null it will be generated internally and iv_encoding must be set to true. This is the convenient way, check out the examples and wiki on main library
    iv_encoding: true # Encrypt the iv and is appends to encrypted value. It makes sense to set it to true if the iv option is set to null. This is the convenient way, check out the examples and wiki on main library
    #--- Alternatively -----
    #data_manager:
    #  name: AES256
    #  parameters:
    #    AES256:
    #      key: null
    #      iv: null
    #      iv_encoding: true
  strategy:
    name: custom
    aggregate_key_auto_creation: true # Enable AggregateKey model auto creation. This is the convenient way, check out the examples and wiki on main library
    value_serializer: json # Strategy to serialize payload's values. Default json
  #--- Alternatively -----
  #strategy:
  #  name: custom
  #  parameters:
  #    custom:
  #      aggregate_key_auto_creation: true
  #      value_serializer: json
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~45 days

Total

10

Last Release

1326d ago

Major Versions

v0.3.0 → v1.0.02022-09-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dbb29f3b357ce6dca7814fa75de51d9f7fa2e9961a28236bef8cf18e0a5f98f?d=identicon)[matiux](/maintainers/matiux)

---

Top Contributors

[![matiux](https://avatars.githubusercontent.com/u/821668?v=4)](https://github.com/matiux "matiux (41 commits)")

---

Tags

symfonybundleserializerDomain Driven Designdddevent sourcingcqrsgdprsensitization

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/matiux-broadway-sensitive-serializer-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/matiux-broadway-sensitive-serializer-bundle/health.svg)](https://phpackages.com/packages/matiux-broadway-sensitive-serializer-bundle)
```

###  Alternatives

[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

3929.4M28](/packages/presta-sitemap-bundle)[broadway/broadway-bundle

Symfony bundle for broadway/broadway.

68853.8k7](/packages/broadway-broadway-bundle)[proophsoftware/prooph-bundle

Symfony bundle for prooph components to get started out of the box with message bus, CQRS, event sourcing and snapshots

164.3k](/packages/proophsoftware-prooph-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
