wecreatesolutions/postmark-inbound
Composer 安装命令:
composer require wecreatesolutions/postmark-inbound
包简介
Convenience library for postmark inbound email parsing.
README 文档
README
Goal of this package is to ease the use of a Postmark Inbound Webhook.
Requirements
= PHP 8.1
Definitions
Inbound
This object allows you to convert the Postmark json string into a Message object
Contact
Represents a mail contact (cc, bcc, from, to)
Header
Represents a mail message header containing a name and value.
Attachment
Represents any attachment that was sent along with the mail message.
Examples
Let's say we want to convert the Postmark inbound json string into a message object that we can use in our application.
$message = \WeCreateSolutions\PostmarkInbound\Message::fromPostmarkJson($postmarkJson);
The message object will contain convenient getters to all values that represent the mail message.
Headers
All headers can be fetched with getHeaders(), an array of Header objects will be returned.
$message = \WeCreateSolutions\PostmarkInbound\Message::fromPostmarkJson($postmarkJson); $headers = $message->getHeaders(); foreach ($headers as $header) { echo $header->name . ': ' . $header->value . PHP_EOL; }
A convenience method is also available to get a specific header by name.
$message = \WeCreateSolutions\PostmarkInbound\Message::fromPostmarkJson($postmarkJson); $header = $message->getHeaderByName('X-Spam-Status'); if (null !== $header) { echo $header->name . ': ' . $header->value . PHP_EOL; }
Contacts
The Contact object is used to store from, to, cc and bcc contacts. Via the getCc(), getBcc(), getFrom() and getTo() methods you are able to get an array of Contact objects.
$message = \WeCreateSolutions\PostmarkInbound\Message::fromPostmarkJson($postmarkJson); $cc = $message->getCc(); foreach ($cc as $contact) { echo $contact->name . ': ' . $contact->email . PHP_EOL; }
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
wecreatesolutions/postmark-inbound 适用场景与选型建议
wecreatesolutions/postmark-inbound 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19.79k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2023 年 01 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「postmark」 「inbound」 「webhook」 「e-mail」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wecreatesolutions/postmark-inbound 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wecreatesolutions/postmark-inbound 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wecreatesolutions/postmark-inbound 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Library to send email across all platforms using one interface.
Provides an email provider for postmarkapp.com
A minor update of Miguel Perez's no-longer maintained code from https://github.com/miguel250/PostmarkBundle to allow for Symfony 3 compatibility. All credit/kudos/thanks for the work should obviously go to him
Inbound emails for Symfony apps with Sendgrid and Mailjet support
Inbox pattern process implementation for your Laravel Applications
Verify, normalize, and track email delivery webhooks from SendGrid, Postmark, Mailgun, Amazon SES, and Resend
统计信息
- 总下载量: 19.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-05