Download the PHP package theseer/imapstore without Composer
On this page you can find all versions of the php package theseer/imapstore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download theseer/imapstore
More information about theseer/imapstore
Files in theseer/imapstore
Download theseer/imapstore
More information about theseer/imapstore
Files in theseer/imapstore
Vendor theseer
Package imapstore
Short Description A simple client to store messages in an imap folder
License BSD-3-Clause
Package imapstore
Short Description A simple client to store messages in an imap folder
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package imapstore
ImapStore
A minimalistic PHP IMAP client library specifically designed for storing email messages on IMAP servers. This library provides a clean, object-oriented interface for connecting to IMAP servers and storing messages with appropriate flags.
Features
- Lightweight: Focused solely on storing messages, not retrieving them
- Secure: Supports TLS/SSL connections
- Type-safe: Built with strict PHP type declarations
- Simple API: Easy-to-use object-oriented interface
- Flexible Authentication: Currently supports LOGIN authentication with extensible architecture for custom authentication methods
- Message Flags: Set message flags (like SEEN) when storing
Installation
Install via Composer:
Requirements
- PHP 8.4 or higher
- No additional PHP extensions required
Usage
Basic Usage
Advanced Usage
Different Folder Destinations
Non-TLS Connections
Custom Ports and Connections
Custom Authentication
Multiple Message Flags
Using PHPMailer to Generate Messages
Message Flags
The library supports the following message flags that can be set when storing messages:
MessageFlag::SEEN
- Mark message as readMessageFlag::ANSWERED
- Mark message as answeredMessageFlag::FLAGGED
- Mark message as flagged/importantMessageFlag::DELETED
- Mark message as deletedMessageFlag::DRAFT
- Mark message as draft
Error Handling
The library may throw exceptions for various error conditions. It's recommended to wrap your code in try-catch blocks:
Security Considerations
- Always use TLS/SSL connections when possible (
TCPConnection::createTLS()
) - Store credentials securely (consider using environment variables)
- Use strong authentication methods
Alternatives and Complementary Libraries
- DirectoryTree/ImapEngine - Full-featured IMAP client when you need comprehensive email operations (reading, searching, managing)
- ddeboer/imap - Alternative full IMAP client library for reading and managing emails
- PHPMailer - Ideal for generating properly formatted email messages that can then be stored using ImapStore
All versions of imapstore with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
ext-sockets Version *
ext-openssl Version *
ext-sockets Version *
ext-openssl Version *
The package theseer/imapstore contains the following files
Loading the files please wait ....