PHPackages                             janiskelemen/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. janiskelemen/postmark-inbound-php

ActiveLibrary[API Development](/categories/api)

janiskelemen/postmark-inbound-php
=================================

Postmark Inbound PHP Wrapper

3.0.8(3y ago)0874↓50%1MITPHPPHP &gt;=5.5

Since Apr 25Pushed 3y agoCompare

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

READMEChangelog (7)DependenciesVersions (10)Used By (0)

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": {
        "janiskelemen/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, Undisclosed (Cc) Recipients and Bcc Recipients
----------------------------------------------------------

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

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

foreach($inbound->UndisclosedRecipients() as $undisclosedRecipient) {
	$undisclosedRecipient->Name;
	$undisclosedRecipient->Email;
}
foreach($inbound->BccRecipients() as $bccRecipient) {
	$bccRecipient->Name;
	$bccRecipient->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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 87.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 ~492 days

Recently: every ~259 days

Total

9

Last Release

1189d 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/41ce0a7670be5be4145b780488d437c3201d24782f6f137f0a0fca436a4d6600?d=identicon)[Janiskelemen](/maintainers/Janiskelemen)

---

Top Contributors

[![jjaffeux](https://avatars.githubusercontent.com/u/339945?v=4)](https://github.com/jjaffeux "jjaffeux (93 commits)")[![janiskelemen](https://avatars.githubusercontent.com/u/20318292?v=4)](https://github.com/janiskelemen "janiskelemen (4 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)")[![Stefan-Dressler](https://avatars.githubusercontent.com/u/34586437?v=4)](https://github.com/Stefan-Dressler "Stefan-Dressler (2 commits)")[![frasermurraysco](https://avatars.githubusercontent.com/u/7722146?v=4)](https://github.com/frasermurraysco "frasermurraysco (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/janiskelemen-postmark-inbound-php/health.svg)

```
[![Health](https://phpackages.com/badges/janiskelemen-postmark-inbound-php/health.svg)](https://phpackages.com/packages/janiskelemen-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.

4242.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)
