- 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.