Installation
Requirements
The Horde/Imap_Client library requires PHP 5.3.0 or later.
PEAR Package
The library can be installed via the PEAR installer:
$ pear channel-discover pear.horde.org $ pear install horde/horde_imap_client
The PEAR installer will automatically download and install all required library dependencies for you.
Further information about configuring PEAR and installing Horde-based PEAR packages can be found on the Horde website.
Composer Package
The library can also be installed via Composer.
      The following should be added to your composer.json file:
     
{
    "repositories": [
        {
            "type": "pear",
            "url": "http://pear.horde.org"
        }
    ],
    "require": {
        "pear-pear.horde.org/Horde_Imap_Client": "*"
    }
}
     Composer will automatically download and install all additional required library dependencies for you.