Weave Code
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

Mail Laravel Package

pear/mail

PEAR Mail is a PHP library for composing and sending email via Mail(), SMTP, or sendmail. It provides a common interface for transports, supports headers and attachments, and integrates with PEAR for quick setup in legacy and modern PHP projects.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Legacy system maintenance where PEAR is deeply embedded and migration to Composer/Laravel-native solutions is impossible due to technical or budget constraints.
  • Minimalist email functionality in outdated PHP environments where no alternatives exist, but only as a last resort.
  • No new development: This package remains actively discouraged for modern Laravel projects due to:
    • Composer incompatibility (PEAR vs. Composer dependency management).
    • Redundant functionality (Laravel’s native mailer is superior in performance, security, and maintainability).
    • Lack of modern features (no async support, limited transport options, no queue integration).
  • Cost-sensitive legacy modernization: If forced to use this package, prioritize wrapper abstractions to isolate it from the rest of the stack.

When to Consider This Package

  • Adopt only if:
    • You are locked into PEAR due to legacy constraints (e.g., enterprise policies, third-party dependencies).
    • The bugfix in v2.0.0 (CRLF header separation) resolves a critical issue in your specific sendmail-based workflow.
    • You have no budget or timeline to migrate to Laravel’s native mailer or Symfony Mailer.
  • Avoid entirely if:
    • You are building new Laravel projects (use Illuminate/Mail or symfony/mailer instead).
    • You need scalability, reliability, or modern features (queues, async, API integrations).
    • Your stack includes Composer (this package is PEAR-only).
  • Look elsewhere for:
    • Any project requiring security patches, performance optimizations, or long-term support.
    • Environments where email deliverability or compliance (e.g., SPF/DKIM) is a priority.

How to Pitch It (Stakeholders)

  • Executives:

    "This package is a legacy holdout with a single minor bugfix (CRLF headers) that only matters if we’re still using sendmail—a relic from the 2000s. Adopting it would lock us into outdated tech, increase maintenance costs, and block future innovation. Laravel’s native mailer is enterprise-grade, secure, and fully supported—we should invest in modernizing rather than doubling down on PEAR. If we must use this, we’ll isolate it behind a wrapper to minimize risk."

  • Engineering:

    "The v2.0.0 release fixes a niche sendmail header issue, but this package is not Laravel-compatible and lacks modern email features. Our current stack (Symfony Mailer) is actively maintained, integrates with queues, and supports async—this package would add technical debt and complicate deployments. Recommendation: Use Laravel’s native mailer or Symfony Mailer for new work. If forced to use this, we’ll need to abstract it away to prevent conflicts with Composer and future-proof the codebase."

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport