-
-
Notifications
You must be signed in to change notification settings - Fork 59
Home
Zaahid Bateson edited this page Jul 27, 2018
·
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 large streams quickly without exhausting available memory.
Passed streams are copied to a php://temp stream and closed for quick reading. Attachment contents aren't directly (without a user's request) loaded into memory, and streams are provided to read from if desired.
MailMimeParser doesn't depend on PHP's imap* functions, and has minimal external dependencies when included.
To include it for use in your project, install via composer:
composer require zbateson/mail-mime-parser