PHPackages                             wecreatesolutions/postmark-inbound - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. wecreatesolutions/postmark-inbound

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

wecreatesolutions/postmark-inbound
==================================

Convenience library for postmark inbound email parsing.

v1.0.2(1y ago)1320.5k↓35.5%1[1 issues](https://github.com/wecreatesolutions/postmark-inbound/issues)MITPHPPHP &gt;=8.1.0

Since Jan 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wecreatesolutions/postmark-inbound)[ Packagist](https://packagist.org/packages/wecreatesolutions/postmark-inbound)[ Docs](https://github.com/wecreatesolutions/postmark-inbound)[ GitHub Sponsors](https://github.com/alexbuis)[ RSS](/packages/wecreatesolutions-postmark-inbound/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (3)Dependencies (9)Versions (4)Used By (0)

Postmark Inbound Package
========================

[](#postmark-inbound-package)

Goal of this package is to ease the use of a Postmark Inbound Webhook.

Requirements
------------

[](#requirements)

> = PHP 8.1

Definitions
-----------

[](#definitions)

### Inbound

[](#inbound)

This object allows you to convert the Postmark json string into a Message object

### Contact

[](#contact)

Represents a mail contact (cc, bcc, from, to)

### Header

[](#header)

Represents a mail message header containing a name and value.

### Attachment

[](#attachment)

Represents any attachment that was sent along with the mail message.

Examples
--------

[](#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

[](#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

[](#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
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Alex Buis](https://github.com/alexbuis)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~324 days

Total

3

Last Release

628d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1103108?v=4)[Alex Buis](/maintainers/alexbuis)[@alexbuis](https://github.com/alexbuis)

---

Top Contributors

[![alexbuis](https://avatars.githubusercontent.com/u/1103108?v=4)](https://github.com/alexbuis "alexbuis (22 commits)")[![fulopattila122](https://avatars.githubusercontent.com/u/1162360?v=4)](https://github.com/fulopattila122 "fulopattila122 (1 commits)")

---

Tags

webhooke-mailpostmarkinbound

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wecreatesolutions-postmark-inbound/health.svg)

```
[![Health](https://phpackages.com/badges/wecreatesolutions-postmark-inbound/health.svg)](https://phpackages.com/packages/wecreatesolutions-postmark-inbound)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[mvdnbrk/laravel-postmark-webhooks

Handle Postmark webhooks in a Laravel application.

2744.8k](/packages/mvdnbrk-laravel-postmark-webhooks)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
