Download the PHP package wecreatesolutions/postmark-inbound without Composer
On this page you can find all versions of the php package wecreatesolutions/postmark-inbound. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wecreatesolutions/postmark-inbound
More information about wecreatesolutions/postmark-inbound
Files in wecreatesolutions/postmark-inbound
Package postmark-inbound
Short Description Convenience library for postmark inbound email parsing.
License MIT
Homepage https://github.com/wecreatesolutions/postmark-inbound
Informations about the package postmark-inbound
Postmark Inbound Package
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.
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.
A convenience method is also available to get a specific header by name.
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.
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
- Alex Buis
- All Contributors
License
The MIT License (MIT). Please see License File for more information.