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.
Architecture fit remains poor; Laravel’s ecosystem relies on Composer and PSR standards, while this PEAR/mail package still lacks native Composer support, requiring manual PEAR installation. This conflicts with Laravel’s dependency management and toolchain (e.g., vendor/ isolation, autoloading). Integration feasibility is still low—no evidence of Laravel-specific adaptations (e.g., facade support, queue driver compatibility) despite the minor bugfix. Technical risk remains high:
mailable events)?SwiftMailer/SymfonyMailer compatibility)?Stack fit is nonexistent: Laravel’s mail system is built on PSR-7/PSR-14 and SwiftMailer/Symfony Mailer, while PEAR/mail remains procedural and incompatible. The v2.0.0 bugfix (CRLF headers) is irrelevant to Laravel’s abstraction layer.
Mailable classes, queue workers, and facade-based API (Mail::send()) cannot be retrofitted to PEAR’s low-level functions. A rewrite would require:
Mailable).database/redis drivers).SwiftMailer or Symfony Mailer.spatie/laravel-mail (Composer-native, actively maintained).Maintenance burden is critical:
failed_jobs table).mail() wrappers) with no patches.How can I help you explore Laravel packages today?