Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Mime Mail Parser Laravel Package

messaged/php-mime-mail-parser

Parse MIME emails in PHP with ease. Extract headers, plain and HTML bodies, inline content, and attachments from raw messages through a simple API. Handles nested multipart messages, common transfer encodings, and file saving. Useful for inbox processing, archiving, and email import tools.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Inbound email as a feature surface. This package is the plumbing behind "reply by email," ticket-by-email, invoice/attachment ingestion, bounce and auto-reply detection, and unsubscribe handling. If any of those are on your roadmap, this is the class of dependency you'll evaluate.
  • Build vs. buy for MIME parsing. Writing a compliant MIME parser in-house means RFC 2045/2046/2047/2231 edge cases, charset conversion, nested multipart, and inline cid: images. A wrapper like this is a "buy" decision that saves weeks — the PM trade-off is dependency risk instead of engineering time.
  • Deployment and platform constraints. This is a wrapper around the mailparse PECL extension, not pure PHP. That single fact drives hosting decisions (custom Docker images, build steps in CI, no-go on restrictive serverless or managed PaaS runtimes) and should be raised in architecture reviews, not discovered during launch.
  • Vendor/dependency risk scoring. At 62 stars, 0 dependents, and a description targeting PHP 5.3+, this is a low-signal fork of a well-known package. Useful as a concrete example when setting an internal bar for "what we're allowed to depend on in a revenue path."
  • Standardization and migration planning. If your codebase has more than one email-parsing path (e.g., one for notifications, one for inbound webhooks), this feeds the decision of which parser becomes the house standard before you accumulate three.
  • Prioritization signal. Inbound email is table stakes for helpdesk, CRM, and marketplace products and a differentiator for workflow tools — worth sizing early because the parser choice constrains the whole feature, not just one endpoint.

When to Consider This Package

Consider it only in a narrow band:

  • A legacy PHP 5.x/7.x application already running the mailparse extension where a swap has non-trivial regression cost.
  • Simple, well-formed parsing needs: headers, plain/HTML body, attachments — no TNEF/winmail.dat, no aggressive charset recovery.
  • A time-boxed spike or prototype where you need bodies out of .eml files this afternoon and will throw the code away.

Look elsewhere when any of the following is true:

  • You're on modern Laravel/PHP 8+. This fork's stated baseline and star count both suggest it isn't tracking current PHP. Prefer the canonical upstream php-mime-mail-parser/php-mime-mail-parser, or a pure-PHP parser such as zbateson/mail-mime-parser.
  • You can't install native extensions — Laravel Cloud/Vapor-style runtimes, shared hosting, or a CI pipeline you don't want to teach about pecl install mailparse.
  • You need active maintenance: security response, PHP version bumps, tests, and issue triage. Zero dependents means zero community validation — no one else has stress-tested this fork in production.
  • You need robustness: malformed mail from the open internet, deeply nested multipart, inline images, encodings like GB2312/Shift-JIS, or huge attachments that need streaming rather than in-memory parsing.
  • You're parsing outbound mail. For sending, Laravel's Mail/Symfony Mime stack already covers you; don't add a parser for that.

Practical guidance: treat this specific package as not production-grade for new work. The upstream project it descends from is a reasonable choice; this fork is not, absent a specific reason.

How to Pitch It (Stakeholders)

To executives: We need to parse inbound email to ship [reply-by-email / ticket ingestion / attachment processing]. The library we found is a thin wrapper over a PHP extension, but it's a stale fork — 62 stars, no downstream dependents, targeting PHP 5.3-era runtimes. The upside is that it's small and cheap to replace; the risk is that it will never get a security or PHP-compatibility fix. Recommendation: fund the feature, not this dependency — budget roughly a day to evaluate the two maintained alternatives and pick one.

To engineering: Two facts drive the call. First, it requires the mailparse PECL extension, so it's a deployment decision as much as a code decision — image builds, CI, and any serverless path. Second, the maintenance signal is poor; we'd be adopting an unmaintained fork of a maintained project. My ask: spike against zbateson/mail-mime-parser (pure PHP, no extension) and the canonical php-mime-mail-parser in parallel, run both over a corpus of real inbound mail including malformed messages, and pick on parse fidelity plus ops cost. Isolate whichever we choose behind a single EmailParser interface so this decision stays reversible.

Framing that lands with both: the parser is a replaceable component behind one interface — so the real decision is "do we accept a native-extension dependency and an unmaintained fork," and the answer should be no unless a legacy constraint forces it.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle