Skip to content

stechstudio/email-forward-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Forward Parser

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