mediamonks/doctrine-extensions
Composer 安装命令:
composer require mediamonks/doctrine-extensions
包简介
Doctrine2 behavioral extensions which allows to transform (encrypt, decrypt, hash) your data automatically
关键字:
README 文档
README
MediaMonks Doctrine2 behavioral extensions
These extensions add more functionality to Doctrine2.
Breaking changes!
All Zend transformers are now renamed to Laminas.
YAML support has been removed
New features!
Attribute support
Transformable
This extension uses transform and reverseTransform methods to convert data to and from the database. This can for example be used to encrypt a field when it's sent to the database and it will be decrypted when it is retrieved from the database.
The field's value will only be transformed when the value changed which also makes it possible to implement only a transform function for one way transformations like hashing.
Currently, these adapters are provided in order of recommendation:
- HaliteSymmetricTransformer - Encrypt/decrypts the value
- DefuseCryptoEncryptKeyTransformer - Encrypt/decrypts the value
- PhpHashTransformer - Hashes the value
- PhpHmacTransformer - Hashes the value with a key
- LaminasCryptHashTransformer - Hashes the value
- LaminasCryptHmacTransformer - Hashes the value with a key
- LaminasCryptSymmetricTransformer - Encrypts/decrypts the value using openssl (Mcrypt is deprecated), with aes as default algorithm
You can easily create your own transformers by implementing the TransformableInterface
System Requirements
You need:
- PHP >= 8.1
To use the library.
Install
Install this package by using Composer.
$ composer require mediamonks/doctrine-extensions
Security
If you discover any security related issues, please email devmonk@mediamonks.com instead of using the issue tracker.
Documentation
Please refer to the files in the /doc folder.
Credits
This package was inspired by/uses code from gedmo/doctrine-extensions.
License
The MIT License (MIT). Please see License File for more information.
mediamonks/doctrine-extensions 适用场景与选型建议
mediamonks/doctrine-extensions 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 313.3k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2016 年 02 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extensions」 「doctrine」 「hash」 「crypt」 「transform」 「encrypt」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mediamonks/doctrine-extensions 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mediamonks/doctrine-extensions 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mediamonks/doctrine-extensions 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A collection of helpers for PHPUnit to ease testing Tarantool libraries.
Register more Twig filters for your OctoberCMS templates
Article CSS-ID Frontend Output Optimization
♺ Laravel Nova Hashids card. Convert your ids.
Make pimcore migration simple
Bundle for Doctrine enumerations extension for Postgres
统计信息
- 总下载量: 313.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-12