Download the PHP package erseco/mime-mail-parser without Composer
On this page you can find all versions of the php package erseco/mime-mail-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download erseco/mime-mail-parser
More information about erseco/mime-mail-parser
Files in erseco/mime-mail-parser
Package mime-mail-parser
Short Description Parse emails without the mailparse extension
License MIT
Homepage https://github.com/erseco/mime-mail-parser
Informations about the package mime-mail-parser
Mime Mail Parser for PHP
Simple, fast, no extensions required
Features | Installation | Credits | Changelog
Features
Mime Mail Parser has a very simple API to parse emails and their MIME contents. Unlike many other parsers out there, this package does not require the mailparse PHP extension.
The parser intentionally favours practical compatibility with real-world email while keeping bounded resource usage. It does not claim full RFC 5322 conformance.
Standards support
| Standard / feature | Support |
|---|---|
| RFC 5322 message headers and body | Partial, practical parsing |
| RFC 2045 MIME structure and transfer encodings | Supported for common multipart, base64, and quoted-printable messages |
| RFC 2047 encoded header words | Supported |
| RFC 2231 extended and continued parameters | Supported |
| Charset conversion for text parts | Supported when conversion is available, with built-in ISO-8859-1 and Windows-1252 fallbacks |
| Nested multipart messages | Supported with configurable depth and part limits |
| Malformed real-world MIME input | Best-effort compatibility with explicit safety limits |
Get Started
Requirements
- PHP 8.2+
Installation
To install the package via composer, Run:
Namespace
The canonical API uses the package namespace:
Legacy class names such as Erseco\Message, Erseco\MessagePart, and Erseco\ParserOptions remain available as compatibility aliases. They are provided for backwards compatibility only; new code should use the canonical namespace.
Usage
Credits
License
The MIT License (MIT). Please see License File for more information.