PHP Package: laminas/laminas-mime

Laminas Mime component for managing MIME types, encoding, and decoding in PHP applications efficiently and securely.

Current Version: 2.12.0
Last Updated: 2023-11-02
PHP Requirement: ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
Dependencies:
php-fig/mime-attachment
php-fig/mime-encoding
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laminas Mime is a robust PHP library that provides comprehensive support for MIME type handling, encoding, and decoding. With a focus on security and efficiency, this library simplifies working with emails, attachments, and content types. It ensures seamless integration with various protocols and email clients, making it a reliable choice for developers seeking MIME-related functionalities.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.12.0

Download Download v2.12.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/laminas/laminas-mime/2.12.0/loader.php';
require_once 'libs/php-fig/mime-attachment/{lib_version}/loader.php';
require_once 'libs/php-fig/mime-encoding/{lib_version}/loader.php';

use Laminas\Mime\Mime;
use PHP\Fig\Mime\Attachment;

$obj = new Mime();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.