PHPackages                             noi/imap-idle - 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. noi/imap-idle

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

noi/imap-idle
=============

An implementation of the IMAP IDLE (RFC 2177) based on the pear/Net\_IMAP

v1.0.1(11y ago)91.3k2MITPHPPHP &gt;=5.3.0

Since Sep 23Pushed 11y ago1 watchersCompare

[ Source](https://github.com/noisan/imap-idle)[ Packagist](https://packagist.org/packages/noi/imap-idle)[ RSS](/packages/noi-imap-idle/feed)WikiDiscussions master Synced 1mo ago

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

ImapIdleClient
==============

[](#imapidleclient)

Extends pear/Net\_IMAP and provides support for the IMAP IDLE command ([RFC 2177](http://tools.ietf.org/html/rfc2177)).

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

[](#installation)

Add the following lines to your *composer.json* file:

```
{
    "require": {
        "noi/imap-idle": "*"
    },
    "repositories": [
        {
            "type": "pear",
            "url": "pear.php.net"
        }
    ]
}
```

and run Composer install:

```
$ php composer.phar install
```

(23-Sep-2013) If you get something similar to the following error:

> \[UnexpectedValueException\] Failed to extract PEAR package /path/to/Net\_IMAP/Net\_IMAP-1.1.2.tgz to /path/to/Net\_IMAP. Reason: Invalid PEAR package. package.xml defines file that is not located inside tarball.

To get beyond this error, you need to add the following lines instead:

```
{
    "require": {
        "noi/imap-idle": "dev-master"
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "pear-pear/Net_IMAP",
                "version": "1.1.2",
                "source": {
                    "type": "git",
                    "url": "https://github.com/pear/Net_IMAP.git",
                    "reference": "1.1.2"
                },
                "require": {
                    "pear-pear/Net_Socket": ">=1.0.8"
                },
                "autoload": {
                    "classmap": ["./Net/"]
                },
                "include-path": ["./"]
            }
        },
        {
            "type": "pear",
            "url": "pear.php.net"
        }
    ]
}
```

It seems that this error is caused by [Bug #19730](http://pear.php.net/bugs/bug.php?id=19730).

Usage
-----

[](#usage)

```
