PHPackages                             mvnaz/imapconnector - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mvnaz/imapconnector

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mvnaz/imapconnector
===================

1.0(7y ago)040PHP

Since Sep 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mvnaz/ImapConnector)[ Packagist](https://packagist.org/packages/mvnaz/imapconnector)[ RSS](/packages/mvnaz-imapconnector/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

mvnaz/imapconnector
===================

[](#mvnazimapconnector)

This package allows you to connect to imap protocol via proxy.

Good qualities:

- Package is very flexible, you can replace any element with your own (ResponseContainer, Parser, Commander, implement your own proxy types)
- Already implemented Socks5 and Https proxies

Limitations

- Proxy authorization need to be implemented
- Parser, Commander - these objects I would not recommend to use from this package in real project. I have included it for example, to show how you can use the stream.

To include it for use in your project, please add following code to your composer.json:

```
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/mvnaz/ImapConnector.git"
        }
    ],
    "require": {
        "mvnaz/imapconnector": "dev-master"
    }

```

Usage
-----

[](#usage)

```
// This object contains all success and errors (You can use your own)
$responseContainer = \Mvnaz\ImapConnector\Containers\ResponseContainer::getInstance();

$connector = new \Mvnaz\ImapConnector\Connector($responseContainer);

// This object is for imap response parsing (You can use your own)
$parser = new \Mvnaz\ImapConnector\Parsers\Parser();

// Socks 5 proxy instance (You can also use HTTP proxy or your own implementation)
$socks5Proxy = new \Mvnaz\ImapConnector\Proxies\Socks5Proxy($responseContainer, "ip", 'port');

// Connecting to the proxy (if you skip this line script will connect to imap directly, without proxy)
$connector->connectToProxy($socks5Proxy);

// Here we get the stream which is via proxy (You can use this stream in your own order, i.e with your own commander)
$stream = $connector->connectToImap("imap_host", 'imap_port');

// Here we check if we was successfully connected to imap
if(is_resource($stream)) {

    // Here we create the commander and pass the stream
    $commander = new \Mvnaz\ImapConnector\Commander($stream, $parser, $responseContainer);

    // Lets login to imap
    if($commander->login("login", "password")){
        echo "Success!";
    }

}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2799d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15434002?v=4)[Mikael](/maintainers/mvnaz)[@mvnaz](https://github.com/mvnaz)

### Embed Badge

![Health badge](/badges/mvnaz-imapconnector/health.svg)

```
[![Health](https://phpackages.com/badges/mvnaz-imapconnector/health.svg)](https://phpackages.com/packages/mvnaz-imapconnector)
```

###  Alternatives

[plumphp/plum

Plum is a data processing pipeline that helps you to write structured, reusable and well tested data processing code.

14088.8k17](/packages/plumphp-plum)[shockwavemk/magento2-module-cron-schedule

Show advanced information for scheduled crons in Magento2 Backend

3533.8k](/packages/shockwavemk-magento2-module-cron-schedule)[gerardojbaez/geodata

Laravel 5.2 package that provides basic geographical data like Countries, Regions and Cities.

3211.9k](/packages/gerardojbaez-geodata)[sintret/yii2-gii-adminlte

Yii2 Generator extension for Gii plugin with adminlte and base on dynagrid. upload excel to system to with log upload

209.6k2](/packages/sintret-yii2-gii-adminlte)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
