mediamonks/doctrine-extensions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mediamonks/doctrine-extensions

最新稳定版本:3.1.1

Composer 安装命令:

composer require mediamonks/doctrine-extensions

包简介

Doctrine2 behavioral extensions which allows to transform (encrypt, decrypt, hash) your data automatically

README 文档

README

Build Status Code Coverage Total Downloads Latest Stable Version Latest Unstable Version License

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.

统计信息

  • 总下载量: 253.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 5
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固