-
-
Notifications
You must be signed in to change notification settings - Fork 58
Home
Zaahid Bateson edited this page Dec 8, 2015
·
8 revisions
MailMimeParser is a PHP library for reading streams formatted in Internet Message Format (RFC-5322, RFC-2822 and RFC-822). MailMimeParser aims to read any mime-compliant message in any encoding, be forgiving enough to parse non-compliant messages and read streams quickly while maintaining a low memory footprint.
Passed streams are copied to a php://temp stream and closed for quick reading. Attachment contents aren't directly loaded into variables, and instead a stream is provided to read from.
MailMimeParser doesn't depend on PHP's imap* functions, and doesn't have any external dependencies when included.
To include it for use in your project, install via composer:
composer require zbateson/mail-mime-parser