Download the PHP package rsaccani/mail-mime-parser without Composer
On this page you can find all versions of the php package rsaccani/mail-mime-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rsaccani/mail-mime-parser
More information about rsaccani/mail-mime-parser
Files in rsaccani/mail-mime-parser
Package mail-mime-parser
Short Description MIME email message parser
License BSD-2-Clause
Homepage https://mail-mime-parser.org
Informations about the package mail-mime-parser
zbateson/mail-mime-parser
Testable and PSR-compliant mail mime parser alternative to PHP's imap* functions and Pear libraries for reading messages in Internet Message Format RFC 822 (and later revisions RFC 2822, RFC 5322).
The goals of this project are to be:
- Well written
- Standards-compliant but forgiving
- Tested where possible
To include it for use in your project, install it via composer:
Sponsors
A huge thank you to all my sponsors. <3
If this project's helped you, please consider sponsoring me.
Php 5.4-7.0 Support Dropped
As of mail-mime-parser 2.3.0, support for php 5.4, 5.5, 5.6 and 7.0 has been dropped.
Removal Notice (since 2.0.0)
getContentResourceHandle
, getTextResourceHandle
, and getHtmlResourceHandle
have all been deprecated in 1.2.1 and removed in 2.0.0. fread() will only return a single byte of a multibyte char, and so will cause potentially unexpected results/warnings in some cases, and psr7 streams should be used instead. Note that getBinaryContentResourceHandle
and getResourceHandle
are still available.
Change in 2.0
Upgrade to 2.0 to take advantage of the new on-demand parser which parses parts of a message as they're requested. This means reading only the headers from a larger message is as fast as a smaller message because the whole message is no longer parsed (similarly reading just the content and not a message's large attachments is also much faster.)
Because of the on-demand parsing, starting in 2.0, the passed resource handle or stream must remain open while the returned message object is still in use.
Old code:
New code:
For a more complete list of changes, please visit the 2.0 Upgrade Guide.
Requirements
MailMimeParser requires PHP 7.1 or newer. Tested on PHP 7.1, 7.2, 7.3, 7.4, 8.0, 8.1 and 8.2.
Usage
Documentation
Upgrading to 1.x or 2.x
License
BSD licensed - please see license agreement.
All versions of mail-mime-parser with dependencies
guzzlehttp/psr7 Version ^1.7.0|^2.0
zbateson/mb-wrapper Version ^1.0.1
zbateson/stream-decorators Version ^1.0.6
pimple/pimple Version ^3.0