PHPackages                             wingear/imap-socket-connection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. wingear/imap-socket-connection

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

wingear/imap-socket-connection
==============================

Lightweight PHP library for working with IMAP servers via socket connection

v1.0.1(11mo ago)03MITPHPPHP &gt;=7.1

Since Jun 6Pushed 11mo agoCompare

[ Source](https://github.com/wingear/imap-socket-connection)[ Packagist](https://packagist.org/packages/wingear/imap-socket-connection)[ Docs](https://github.com/wingear/imap-socket-connection)[ RSS](/packages/wingear-imap-socket-connection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

IMAP Socket Connection
======================

[](#imap-socket-connection)

Lightweight PHP library for working with IMAP servers via socket connection

[![Latest Stable Version](https://camo.githubusercontent.com/0f6a054ddc4c4fea01910793dfc0720cb2e6d29becba627f18115f22fc227ec3/68747470733a2f2f706f7365722e707567782e6f72672f77696e676561722f696d61702d736f636b65742d636f6e6e656374696f6e2f762f737461626c65)](https://packagist.org/packages/wingear/imap-socket-connection)[![Total Downloads](https://camo.githubusercontent.com/b43dd25f6b7cf4bda6562baa4ab6110d2e617c82c6d079b718bb118995a6a165/68747470733a2f2f706f7365722e707567782e6f72672f77696e676561722f696d61702d736f636b65742d636f6e6e656374696f6e2f646f776e6c6f616473)](https://packagist.org/packages/wingear/imap-socket-connection)[![License](https://camo.githubusercontent.com/01afa75f84ee4d5a305df097f95c49e2fbc38607c49511c6ac4be7beadd28f6c/68747470733a2f2f706f7365722e707567782e6f72672f77696e676561722f696d61702d736f636b65742d636f6e6e656374696f6e2f6c6963656e7365)](https://packagist.org/packages/wingear/imap-socket-connection)[![PHP Version Require](https://camo.githubusercontent.com/efa57982451fd8fcb6ae1179dcbaaac624e759c69e2655b8be273821b4444761/68747470733a2f2f706f7365722e707567782e6f72672f77696e676561722f696d61702d736f636b65742d636f6e6e656374696f6e2f726571756972652f706870)](https://packagist.org/packages/wingear/imap-socket-connection)

Description
-----------

[](#description)

This library provides a simple and efficient way to connect to IMAP servers and perform basic email operations without using the php-imap extension.

Features
--------

[](#features)

- ✅ Direct socket connection to IMAP servers
- ✅ Folder management (list, selection)
- ✅ Search and receive messages
- ✅ Work with headers and message bodies
- ✅ Attachment handling
- ✅ Manage message flags (read/unread)
- ✅ Delete messages
- ✅ Decoding various types of encodings

Requirements
------------

[](#requirements)

- PHP 7.1 or higher
- Extension `sockets` (usually enabled by default)

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require wingear/imap-socket-connection
```

### Manual

[](#manual)

Download file and require:

```
require_once 'src/IMAPSocketConnection.php';
```

Example
-------

[](#example)

```
