stechstudio/email-forward-parser

PHP port of https://github.com/crisp-oss/email-forward-parser

0.3 2025-01-29 20:29 UTC

This package is auto-updated.

Last update: 2025-01-29 20:29:42 UTC


README

This is a PHP port of email-forward-parser by Crisp OSS.

All credit goes to them.

Installation

composer require stechstudio/email-forward-parser

Usage

use STS\EmailForward\Parser;

$parser = new Parser();

$result = $parser->read($emailBody, $emailSubject);

echo $result['forwarded']; // true
echo $result['email']['from']['address']; // john.doe@acme.com

See https://github.com/crisp-oss/email-forward-parser/blob/master/README.md for more usage examples.

License

MIT