nightjar/swiftsigner-cryptgpg
最新稳定版本:1.0.0
Composer 安装命令:
composer require nightjar/swiftsigner-cryptgpg
包简介
Signer for Swift Mailer - using PEAR's Crypt_GPG library for OpenPGP encryption or signing (or both) of outgoing emails.
README 文档
README
This library extends the somewhat ubiqitious SwiftMailer package by providing a class to fit the Message Signer API to implement PGP encryption and optionally signing.
Usage
One must have a keyring set up and accessible, as per the requirements of the Crypt_GPG library.
This means that PHP must also have permission to shell out commands via proc_open
$encryptionKeyID = 'recipient@example.test';
$signer = new \Nightjar\SwiftSignerCryptGPG($encryptionKeyID);
/** @var Swift_Message $swiftMessage */
$swiftMessage->attachSigner($signer);
Upon sending the message it will be encrypted as per PGP/MIME (RFC 3156)
Limitations and future development
Currently encryption is mandatory, signing is optional. This should change to provide a signing only option in the future.
统计信息
- 总下载量: 3.96k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-13