PHPackages                             jjaffeux/postmark-inbound-php - 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. [API Development](/categories/api)
4. /
5. jjaffeux/postmark-inbound-php

AbandonedArchivedLibrary[API Development](/categories/api)

jjaffeux/postmark-inbound-php
=============================

Postmark Inbound PHP Wrapper

3.0.1(10y ago)98890.4k—1.1%22[2 issues](https://github.com/jjaffeux/postmark-inbound-php/issues)1MITPHPPHP &gt;=5.5

Since Apr 25Pushed 4y ago9 watchersCompare

[ Source](https://github.com/jjaffeux/postmark-inbound-php)[ Packagist](https://packagist.org/packages/jjaffeux/postmark-inbound-php)[ Docs](https://github.com/jjaffeux/postmark-inbound-php)[ RSS](/packages/jjaffeux-postmark-inbound-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (1)

POSTMARK INBOUND HOOK
=====================

[](#postmark-inbound-hook)

This is a simple API wrapper for Postmark Inbound Hook ()

[![Build Status](https://camo.githubusercontent.com/c931ee3b0dd6a41eaf5a9f634dd993f37e6490df11c5444df44b2544fe7cd88a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a6a6166666575782f706f73746d61726b2d696e626f756e642d7068702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/jjaffeux/postmark-inbound-php)

Setup
-----

[](#setup)

With composer :

```
{
    "require": {
        "jjaffeux/postmark-inbound-php": ">=3.0"
    }
}
```

```
$inbound = new \Postmark\Inbound(file_get_contents('php://input'));
```

Without composer :

```
require_once '../lib/Postmark/Autoloader.php';
\Postmark\Autoloader::register();

// this file should be the target of the callback you set in your postmark account
$inbound = new \Postmark\Inbound(file_get_contents('php://input'));
```

General Usage
-------------

[](#general-usage)

```
$inbound->Subject();
$inbound->FromEmail();
$inbound->FromFull();
$inbound->FromName();
$inbound->Date();
$inbound->OriginalRecipient();
$inbound->ReplyTo();
$inbound->MailboxHash();
$inbound->Tag();
$inbound->MessageID();
$inbound->TextBody();
$inbound->HtmlBody();
$inbound->StrippedTextReply();
```

Headers
-------

[](#headers)

```
$inbound->Headers(); //default to spam status
$inbound->Headers('X-Spam-Status');
$inbound->Headers('X-Spam-Checker-Version');
$inbound->Headers('X-Spam-Score');
$inbound->Headers('X-Spam-Tests');
$inbound->Headers('Received-SPF');
$inbound->Headers('MIME-Version');
$inbound->Headers('Received-SPF'); // pass neutral fail
$inbound->Headers('Message-ID');
```

Recipients and Undisclosed Recipients
-------------------------------------

[](#recipients-and-undisclosed-recipients)

```
foreach($inbound->Recipients() as $recipient) {
	$recipient->Name;
	$recipient->Email;
}

foreach($inbound->UndisclosedRecipients() as $undisclosedRecipient) {
	$undisclosedRecipient->Name;
	$undisclosedRecipient->Email;
}
```

Attachments
-----------

[](#attachments)

```
foreach($inbound->Attachments() as $attachment) {
	$attachment->Name;
	$attachment->ContentType;
	$attachment->ContentLength;
	$attachment->Download('/'); //takes directory as first argument
}

$inbound->HasAttachments();
```

Raw
---

[](#raw)

```
$inbound->Source; //array
$inbound->Json; //raw json
```

Bug tracker
-----------

[](#bug-tracker)

Have a bug? Please create an issue here on GitHub!

Contributions
-------------

[](#contributions)

- Fork
- Write tests (phpunit in the directory to run the tests)
- Write Code
- Pull request

Thanks for your help.

Authors
-------

[](#authors)

**Joffrey Jaffeux**

-
-

Inspiration
-----------

[](#inspiration)

Thx to Randy Schmidt for the original ruby wrapper

-
-

Other libraries
---------------

[](#other-libraries)

- Ruby :
- Python :

License
-------

[](#license)

MIT License

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity54

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 92.1% 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 ~414 days

Total

4

Last Release

3893d ago

Major Versions

2.1.1 → 3.0.12015-09-21

PHP version history (2 changes)2.0.0PHP &gt;=5.2

3.0.1PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd500e567e8d4485a99465ca39ff5759a8bc0f38d06084f8da59cb5b41a10594?d=identicon)[joffreyjaffeux](/maintainers/joffreyjaffeux)

---

Top Contributors

[![jjaffeux](https://avatars.githubusercontent.com/u/339945?v=4)](https://github.com/jjaffeux "jjaffeux (93 commits)")[![RickSeymour](https://avatars.githubusercontent.com/u/212399?v=4)](https://github.com/RickSeymour "RickSeymour (3 commits)")[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (2 commits)")[![frasermurraysco](https://avatars.githubusercontent.com/u/7722146?v=4)](https://github.com/frasermurraysco "frasermurraysco (1 commits)")[![navitronic](https://avatars.githubusercontent.com/u/180519?v=4)](https://github.com/navitronic "navitronic (1 commits)")[![z38](https://avatars.githubusercontent.com/u/3948085?v=4)](https://github.com/z38 "z38 (1 commits)")

---

Tags

apiwrapperpostmarkinboundmails

### Embed Badge

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

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

###  Alternatives

[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[wtfzdotnet/php-tmdb-api

PHP wrapper for TMDB (TheMovieDatabase) API v3. Supports two types of approaches, one modelled with repositories, models and factories. And the other by simple array access to RAW data from The Movie Database.

4252.9k](/packages/wtfzdotnet-php-tmdb-api)[walle89/swedbank-json

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

752.5k](/packages/walle89-swedbank-json)

PHPackages © 2026

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