定制 zbateson/mmp-crypt 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

zbateson/mmp-crypt

Composer 安装命令:

composer require zbateson/mmp-crypt

包简介

Cryptographic support for zbateson/mail-mime-parser (encryption, decryption, signing, verification)

README 文档

README

Cryptographic support for zbateson/mail-mime-parser -- provides base classes and interfaces for encryption, decryption, signing, and verification of MIME email messages.

Total Downloads Latest Stable Version

composer require zbateson/mmp-crypt

Sponsors

SecuMailer

A huge thank you to all my sponsors. <3

If this project's helped you, please consider sponsoring me.

Requirements

PHP 8.1 or newer, and zbateson/mail-mime-parser 4.x.

Description

This is the base package for mail-mime-parser's cryptographic plugin system. It provides:

  • IMimeCrypt -- interface for encryption/decryption/signing/verification implementations
  • AbstractMimeCrypt -- base class implementing IMimeCrypt with stream handling
  • EncryptedMessage / EncryptedMimePart -- message/part classes that transparently expose decrypted content via getStream(), with getEncryptedStream() for accessing the original encrypted data

On its own, this package doesn't perform any cryptographic operations. Install an implementation package:

Usage

use ZBateson\MailMimeParser\Message;

// Parsing an encrypted message automatically uses the registered
// IMimeCrypt implementation to decrypt it.
$message = Message::from($rawEmail, false);

// If the message was encrypted, it will be an EncryptedMessage instance.
// getStream() / getTextContent() / etc. return decrypted content by default.
echo $message->getTextContent();

// Access the original encrypted stream if needed
if ($message instanceof \ZBateson\MmpCrypt\EncryptedMessage) {
    $encryptedStream = $message->getEncryptedStream();
}

License

BSD licensed - please see license agreement.

统计信息

  • 总下载量: 1.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2026-02-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固