district5/mondoc-encryption
最新稳定版本:1.0.2
Composer 安装命令:
composer require district5/mondoc-encryption
包简介
Mondoc encryption provides the encrypt/decrypt functionality for Mondoc.
README 文档
README
Provides the encryption function to Mondoc
Installing with composer
Mondoc Encryption is used by, and leverages functionality from, the Mondoc library. You will need to install Mondoc in order to use Mondoc Encryption.
composer require district5/mondoc
Documentation...
All documentation for Mondoc Encryption, Mondoc, and Mondoc Builder are available at mondoc.district5.dev.
Common topics...
- Getting started with encryption: mondoc.district5.dev/documentation/model/field-encryption
Testing
You can run PHPUnit against the library by running composer install and then running ./vendor/bin/phpunit
Creating a new encryption adapter
To create a new encryption adapter, you need to implement the EncryptionAdapterInterface interface, which requires the
following methods:
/** * Encrypt the field value. */ public function encrypt(string $field, mixed $value): mixed; /** * Decrypt the field value. */ public function decrypt(string $field, mixed $value): mixed;
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2025-05-16