marko/encryption
最新稳定版本:0.5.0
Composer 安装命令:
composer require marko/encryption
包简介
Encryption contracts for Marko Framework
README 文档
README
Interfaces for encryption--defines how data is encrypted and decrypted, not which cipher is used.
Installation
composer require marko/encryption
Note: You typically install a driver package (like marko/encryption-openssl) which requires this automatically.
Quick Example
use Marko\Encryption\Contracts\EncryptorInterface; class TokenService { public function __construct( private EncryptorInterface $encryptor, ) {} public function issueToken(array $payload): string { return $this->encryptor->encrypt( json_encode($payload, JSON_THROW_ON_ERROR), ); } }
Documentation
Full usage, API reference, and examples: marko/encryption
统计信息
- 总下载量: 92
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-24