matiux/broadway-sensitive-serializer
Composer 安装命令:
composer require matiux/broadway-sensitive-serializer
包简介
Serializer implementation with support for data sensitization
README 文档
README
The idea behind this project is to make a CQRS+ES system compliant, specifically implemented through the Broadway library, with the General Data Protection Regulation (GDPR), in particular with the right to be forgotten.
Normal Broadway event payload
{
"class": "SensitiveUser\\User\\Domain\\Event\\UserRegistered",
"payload": {
"id": "b0fce205-d816-46ac-886f-06de19236750",
"name": "Matteo",
"surname": "Galacci",
"email": "m.galacci@gmail.com",
"occurred_at": "2022-01-08T14:22:38.065+00:00"
}
}
Example of a payload with the extension active
{
"class": "SensitiveUser\\User\\Domain\\Event\\UserRegistered",
"payload": {
"id": "b0fce205-d816-46ac-886f-06de19236750",
"name": "Matteo",
"surname": "#-#2Iuofg4NKKPLAG2kdJrbmQ==:bxQo+zXfjUgrD0jHuht0mQ==",
"email": "#-#OFLfN9XDKtWrmCmUb6mhY0Iz2V6wtam0pcqs6vDJFRU=:bxQo+zXfjUgrD0jHuht0mQ==",
"occurred_at": "2022-01-08T14:22:38.065+00:00"
}
}
The symfony bundle exists to simplify integration with the framework here
Read the doc for more information.
Install
composer require matiux/broadway-sensitive-serializer
Setup for development
git clone https://github.com/matiux/broadway-sensitive-serializer.git && cd broadway-sensitive-serializer cp docker/docker-compose.override.dist.yml docker/docker-compose.override.yml rm -rf .git/hooks && ln -s ../scripts/git-hooks .git/hooks
This repository uses GitHub actions to perform some checks. If you want to test the actions locally you can use act. For example if you want to check the action for static analysis
act -P ubuntu-latest=shivammathur/node:latest --job static-analysis
Interact with the PHP container
You can interact with the PHP container through the makefile
Some uses:
make upd
make enter
make phpunit
make psalm
make coding-standard-fix-staged
make build-php ARG="--no-cache"
make build-docs
Check out here for all the options.
Install dependencies to run test or execute examples
make build-php ARG="--no-cache" make upd make composer ARG="install"
Run test
make build-php ARG="--no-cache"
make upd
make phpunit
Example code
Read the examples section
matiux/broadway-sensitive-serializer 适用场景与选型建议
matiux/broadway-sensitive-serializer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 414 次下载、GitHub Stars 达 8, 最近一次更新时间为 2021 年 12 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「serializer」 「ddd」 「cqrs」 「domain-driven design」 「event sourcing」 「sensitization」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 matiux/broadway-sensitive-serializer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 matiux/broadway-sensitive-serializer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 matiux/broadway-sensitive-serializer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Bridge between JMS Serializer Bundle and Superdesk Web Publisher.
Runn Me! Value Objects Library
De/normalize business objects without tightly coupling them to your normalization format
Interfaces, Traits and Nominal Classes used by Domain Entities Implementing Domain Events
Implementation of the transactional outbox pattern on top of rekalogika/domain-event
Build a domain-oriented application on Laravel Framework
统计信息
- 总下载量: 414
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 7
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-21