承接 nightjar/swiftsigner-cryptgpg 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-13