stechstudio / email-forward-parser
PHP port of https://github.com/crisp-oss/email-forward-parser
0.3
2025-01-29 20:29 UTC
Requires
- php: ^8.3
Requires (Dev)
- phpunit/phpunit: ^11.5
- symfony/var-dumper: ^7.2
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