PHP MIME Mail Parser is a free PHP library for extracting information from MIME email, wrapping the mailparse extension. It can support workflows such as processing Postfix mail, reading .eml messages, building webmail, and storing email information in a database. Inputs may be file paths, raw MIME text, PHP file resources, or streams such as stdin. The library can return headers as raw text or as a character-set-converted array, and extract addresses and the subject. It retrieves text and HTML bodies, including HTML with embedded content such as images. Attachment functions can list and save files, include or omit inline attachments, and apply a chosen strategy to duplicate filenames. The project recommends installation through Composer using php-mime-mail-parser/php-mime-mail-parser. The current package requires PHP 8.2 or later and the mailparse extension; listed supported PHP versions are 8.2 through 8.5. Setup instructions cover Debian and Ubuntu, macOS, Windows, and other platforms. The library is MIT-licensed and listed at 0.00 USD per free.
Who it is for
This library suits PHP developers who need to parse MIME messages or extract headers, bodies, and attachments. It requires PHP 8.2 or later and the mailparse extension.
What is good
- Accepts files, raw MIME text, resources, and streams.
- Extracts text, HTML, headers, and addresses.
- Can list and save attachments.
- MIT-licensed and listed as free.
What to know first
- Requires PHP 8.2 or later.
- Requires the mailparse extension.
- No OCR extraction, webhook delivery, or API access.
Verdict
PHP MIME Mail Parser covers message headers, bodies, and attachments across several input types. Its PHP and mailparse requirements should be checked before adopting it.
PHP MIME Mail Parser plans and pricing
All plansCompared on email parsing software
- Free plan
- Yes
- Attachment parsing
- Yes
- OCR extraction
- No
- Webhook delivery
- No
- API access
- No
- Custom extraction fields
- No



