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
Laminas Mime

Laminas Mime Laravel Package

hypervel/laminas-mime

Hypervel's port of laminas-mime, offering tools to create, parse, and manipulate MIME messages and emails in Hyperf applications. Handle headers, multipart bodies, encodings, and attachments through a familiar, framework-integrated API.

Deep Wiki
Context7

hypervel/laminas-mime integrates laminas-mime with Hypervel/Hyperf, providing a container-aware way to detect and work with MIME types. It brings Laminas’s reliable MIME mapping and file inspection capabilities into the framework’s dependency injection and service conventions.

  • Detect MIME types from files and extensions.
  • Access Laminas MimeType through the service container.
  • Map extensions to MIME types and MIME types to extensions.
  • Framework-friendly dependency management for consistent MIME handling.
Frequently asked questions about Laminas Mime
What is hypervel/laminas-mime used for?
It is a Hypervel port of the laminas-mime package, used for parsing, building, and manipulating MIME messages. You can create and inspect multipart emails, decode encoded headers and content, and work with attachments. It is intended for projects running on the Hypervel coroutine-driven framework.
Why does hypervel/laminas-mime exist instead of laminas/laminas-mime?
The upstream laminas-mime package was abandoned, so this repository exists as a temporary alternative. The goal is to keep the same MIME parsing, building, and manipulation capabilities available to Hypervel applications. Treat it as a continuation of the original API rather than a new library with a different design.
How do I install hypervel/laminas-mime with Composer?
Install it with composer require hypervel/laminas-mime. Check the package page for the currently available versions before adding a constraint, since this is a temporary alternative repository. After installing, confirm that your PHP version and framework dependencies match what the package requires.
Is hypervel/laminas-mime compatible with Laravel applications?
The package is built for Hypervel, a coroutine-driven framework, and is described as a port of laminas-mime for that ecosystem. Laravel developers can still evaluate it for MIME parsing and email building work, but it is not a Laravel-native package and you should verify its dependencies first. If you need deep Laravel mail integration, check how it fits with your existing mail stack before adopting it.
Which Laravel or PHP versions does hypervel/laminas-mime support?
The provided package context does not include a version support matrix, so there is no confirmed list of Laravel or PHP versions. Inspect the package's composer.json for PHP and dependency constraints before installing it in an existing project. This is especially important for older applications or those pinned to specific framework releases.
How do I parse a raw MIME email message with this package?
The package exposes MIME message parsing capabilities inherited from laminas-mime, allowing you to read raw message strings into structured message objects. From there you can inspect parts, headers, and body content of the message. Multipart messages are supported, so nested parts of an email can be traversed and examined.
Can hypervel/laminas-mime decode encoded headers and message content?
Yes. The package is described as supporting decoding of encoded headers and content, which is essential for messages using encoded-word headers or transfer encodings. This lets you work with readable header values and body content rather than raw encoded data. It is useful when processing inbound mail or imported MIME files.
How do I create a multipart email with attachments using hypervel/laminas-mime?
You build MIME messages programmatically, composing multipart bodies and adding attachment parts through the package's message-building API. The same API lets you inspect existing messages to extract their attachments. Because this is a port of laminas-mime, the general approach mirrors the upstream package's message and part classes.
Is hypervel/laminas-mime safe to use in production?
The repository is explicitly described as a temporary alternative for an abandoned package, so treat its long-term maintenance as uncertain. Pin a specific version in composer.json and review the code before relying on it in production. Monitor the repository for updates or a recommended replacement, and consider wrapping the usage so it can be swapped later.
What are the alternatives to hypervel/laminas-mime?
The most direct alternative is the original laminas/laminas-mime package if it remains usable for your project, along with other MIME parsing libraries such as symfony/mime. For Laravel-specific mail work, the framework's own mail components may cover common cases. Choose based on your Hypervel compatibility needs, maintenance status, and whether you need full MIME parsing or simple message construction.
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console