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

ActiveLibrary[API Development](/categories/api)

priyolahiri/postmark-inbound-php
================================

Postmark Inbound PHP Wrapper

3.0.0(13y ago)117MITPHPPHP &gt;=5.2

Since Apr 25Pushed 13y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)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": {
        "jjaffeux/postmark-inbound-php": ">=2.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->ReplyTo();
$inbound->MailboxHash();
$inbound->Tag();
$inbound->MessageID();
$inbound->TextBody();
$inbound->HtmlBody();
```

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 :
- Node :

License
-------

[](#license)

MIT License

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 95.3% 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 ~171 days

Total

3

Last Release

4881d ago

Major Versions

2.1.0 → 3.0.02013-04-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1254077?v=4)[Priyadarshi Lahiri](/maintainers/priyolahiri)[@priyolahiri](https://github.com/priyolahiri)

---

Top Contributors

[![jjaffeux](https://avatars.githubusercontent.com/u/339945?v=4)](https://github.com/jjaffeux "jjaffeux (82 commits)")[![priyolahiri](https://avatars.githubusercontent.com/u/1254077?v=4)](https://github.com/priyolahiri "priyolahiri (4 commits)")

---

Tags

apiwrapperpostmarkinboundmails

### Embed Badge

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

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

###  Alternatives

[gabrielbull/ups-api

PHP UPS API

4562.5M11](/packages/gabrielbull-ups-api)[php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

16553.3k1](/packages/php-tmdb-laravel)[lasserafn/laravel-economic

Economic REST wrapper for Laravel

1120.2k](/packages/lasserafn-laravel-economic)

PHPackages © 2026

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