laminas/laminas-mime
Laminas MIME component for handling MIME messages and parts. Note: this package is abandoned and will receive no further development. For an actively maintained alternative, consider symfony/mime or zbateson/mail-mime-parser.
Response::make() with MIME headers). It bridges gaps where Laravel’s native tools (e.g., File, Response) lack granular MIME control.quoted-printable, base64) is modular, allowing TPMs to adopt only the components needed (e.g., skip full message parsing if only headers are required).bind() or app()), integrates with SwiftMailer for email attachments, and complements Laravel Filesystem for MIME-aware file responses.new \Laminas\Mime\Message()).laminas/laminas-mime has no hard dependencies beyond PHP, avoiding version clashes with Laravel’s Composer packages.strtolower() or mb_* functions are exploited).laminas-mime in the codebase to quantify effort for replacement.symfony/mime for new features, then backfill legacy code).imap_rfc822_parse_headers() or mailparse.symfony/mime or another maintained alternative?php-mime-mail-parser, spatie/array-to-xml) that could reduce dependency on laminas-mime?laminas-mime are used (e.g., Message, Part, Encoding)? Are these covered by alternatives?SwiftMailer’s basic attachments with Laminas\Mime\Part for advanced MIME control (e.g., custom headers, encodings).Laminas\Mime\Message to generate MIME-aware responses (e.g., ZIP downloads with metadata).Laminas\Mime\Message with Laravel\Response.symfony/http-foundation (for responses). Adding symfony/mime would provide a unified solution for both emails and HTTP.imap_rfc822_parse_headers() or mailparse extension.composer why laminas/laminas-mime to identify dependencies.Laminas\Mime usage (e.g., grep -r "Laminas\\Mime").symfony/mime:
// Before (laminas-mime)
$part = new \Laminas\Mime\Part($fileContent);
$part->type = 'application/pdf';
// After (symfony/mime)
$part = new \Symfony\Component\Mime\Part($fileContent);
$part->headers->addTextHeader('Content-Type', 'application/pdf');
composer.json to replace laminas/laminas-mime with symfony/mime.Message, Part, and Encoding classes.deprecated() helper or feature flags.laminas-mime in a compatibility layer (e.g., abstract class) to ease transition.laminas-mime.laminas-mime, either:
symfony/mime.laminas-mime within 12–18 months to avoid technical debt.laminas-mime for critical bugs.How can I help you explore Laravel packages today?