PHPackages                             zoon/php-bounce-handler - 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. zoon/php-bounce-handler

ActiveLibrary

zoon/php-bounce-handler
=======================

8.0.2(2mo ago)24.0k↑30.4%1PHPPHP &gt;=8.4

Since Jul 28Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/zoonru/PHP-Bounce-Handler)[ Packagist](https://packagist.org/packages/zoon/php-bounce-handler)[ RSS](/packages/zoon-php-bounce-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (10)Used By (0)

PHP Bounce Handler (v8)
=======================

[](#php-bounce-handler-v8)

Modern PHP 8.4+ library for parsing bounce emails, FBL reports, and autoresponses.

Package: `zoonru/php-bounce-handler`

Features
--------

[](#features)

- Detects email type: `bounce`, `fbl`, `autoresponse`
- Extracts action and status (`failed`, `transient`, `success`, SMTP/RFC status codes)
- Resolves reason (`userunknown`, `notaccept`, `filtered`)
- Parses FBL fields (source IP, original sender/recipient, agent)
- Detects FBL from common patterns: `report-type=feedback-report`, `message/feedback-report` MIME parts, `Feedback-ID`/`X-Feedback-ID`, provider loop headers
- Includes fixture-driven regression tests (`eml/`)

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

[](#requirements)

- PHP `>= 8.4`
- Composer

Installation
------------

[](#installation)

```
composer install
```

Quick Start
-----------

[](#quick-start)

```
