PHPackages                             igorhouse/fetch - 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. igorhouse/fetch

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

igorhouse/fetch
===============

A PHP IMAP Library

v1.1(6mo ago)0434↓100%BSD-3-ClausePHPPHP &gt;=5.3.0

Since Apr 26Pushed 6mo agoCompare

[ Source](https://github.com/Igorhouse/Fetch)[ Packagist](https://packagist.org/packages/igorhouse/fetch)[ Docs](http://github.com/Igorhouse/Fetch)[ RSS](/packages/igorhouse-fetch/feed)WikiDiscussions master Synced 1mo ago

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

Fetch [![Build Status](https://camo.githubusercontent.com/ca2a59f5362d95a9eed2612cdd9bb2a56d7637ac4c2d5f4e3a9ae2debef08a20/68747470733a2f2f7472617669732d63692e6f72672f746564696f75732f46657463682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tedious/Fetch)
============================================================================================================================================================================================================================================================================

[](#fetch-)

[![License](https://camo.githubusercontent.com/24ab3e9fb449a448ab249a002b88f62114b27d0ace6e45b6e29be5009630bac7/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74656469766d2f66657463682e737667)](https://github.com/tedious/fetch/blob/master/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/65bdb81284ab7596622e1fbe8f8fd538c7ce4d843ddde206f241526dd80a24f1/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f746564696f75732f66657463682e737667)](https://packagist.org/packages/tedivm/fetch)[![Coverage Status](https://camo.githubusercontent.com/7aedef0071817cb065174c79919a04153b1f91ead127a68c6f56cf6c8b7897e6/687474703a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f746564696f75732f46657463682e737667)](https://coveralls.io/r/tedious/Fetch?branch=master)[![Total Downloads](https://camo.githubusercontent.com/000687dff88f4bde9c4f9dff652b4f6b1c712ae50c1f1d6f7e99319e098d8a0f/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656469766d2f66657463682e737667)](https://packagist.org/packages/tedivm/fetch)

Fetch is a library for reading email and attachments, primarily using the POP and IMAP protocols.

Installing
----------

[](#installing)

> N.b. A note on Ubuntu 14.04 (probably other Debian-based / Apt managed systems), the install of php5-imap does not enable the extension for CLI (possibly others as well), which can cause composer to report fetch requires `ext-imap`

```
sudo ln -s /etc/php5/mods-available/imap.ini /etc/php5/cli/conf.d/30-imap.ini
```

### Composer

[](#composer)

Installing Fetch can be done through a variety of methods, although Composer is recommended.

Until Fetch reaches a stable API with version 1.0 it is recommended that you review changes before even Minor updates, although bug fixes will always be backwards compatible.

```
"require": {
  "tedivm/fetch": "0.7.*"
}

```

### Pear

[](#pear)

Fetch is also available through Pear.

```
$ pear channel-discover pear.tedivm.com
$ pear install tedivm/Fetch

```

### Github

[](#github)

Releases of Fetch are available on [Github](https://github.com/tedious/Fetch/releases).

Sample Usage
------------

[](#sample-usage)

This is just a simple code to show how to access messages by using Fetch. It uses Fetch own autoload, but it can (and should be, if applicable) replaced with the one generated by composer.

```
use Fetch\Server;
use Fetch\Message;

$server = new Server('imap.example.com', 993);
$server->setAuthentication('username', 'password');

/** @var Message[] $message */
$messages = $server->getMessages();

foreach ($messages as $message) {
    echo "Subject: {$message->getSubject()}", PHP_EOL;
    echo "Body: {$message->getMessageBody()}", PHP_EOL;
}
```

License
-------

[](#license)

Fetch is licensed under the BSD License. See the LICENSE file for details.

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance70

Regular maintenance activity

Popularity14

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.8% of commits — single point of failure

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

Every ~903 days

Total

2

Last Release

204d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8617a6a6e54be428bd4b67e536e49f844168193bb80a11accbe3fa3678e8b81?d=identicon)[Igorhouse](/maintainers/Igorhouse)

---

Top Contributors

[![tedivm](https://avatars.githubusercontent.com/u/121709?v=4)](https://github.com/tedivm "tedivm (164 commits)")[![Lewiscowles1986](https://avatars.githubusercontent.com/u/2605791?v=4)](https://github.com/Lewiscowles1986 "Lewiscowles1986 (22 commits)")[![Xethron](https://avatars.githubusercontent.com/u/1497338?v=4)](https://github.com/Xethron "Xethron (9 commits)")[![luxifer](https://avatars.githubusercontent.com/u/419078?v=4)](https://github.com/luxifer "luxifer (6 commits)")[![Lumbendil](https://avatars.githubusercontent.com/u/184785?v=4)](https://github.com/Lumbendil "Lumbendil (6 commits)")[![benr77](https://avatars.githubusercontent.com/u/2156742?v=4)](https://github.com/benr77 "benr77 (5 commits)")[![sergeyklay](https://avatars.githubusercontent.com/u/1256298?v=4)](https://github.com/sergeyklay "sergeyklay (5 commits)")[![VasuLief](https://avatars.githubusercontent.com/u/4518408?v=4)](https://github.com/VasuLief "VasuLief (4 commits)")[![littleslicebigcity](https://avatars.githubusercontent.com/u/124756761?v=4)](https://github.com/littleslicebigcity "littleslicebigcity (3 commits)")[![ge0ffray](https://avatars.githubusercontent.com/u/810054?v=4)](https://github.com/ge0ffray "ge0ffray (3 commits)")[![arabcoders](https://avatars.githubusercontent.com/u/1621552?v=4)](https://github.com/arabcoders "arabcoders (3 commits)")[![kevinsmith](https://avatars.githubusercontent.com/u/397904?v=4)](https://github.com/kevinsmith "kevinsmith (3 commits)")[![gries](https://avatars.githubusercontent.com/u/417823?v=4)](https://github.com/gries "gries (2 commits)")[![Igorhouse](https://avatars.githubusercontent.com/u/131881833?v=4)](https://github.com/Igorhouse "Igorhouse (2 commits)")[![skl](https://avatars.githubusercontent.com/u/514343?v=4)](https://github.com/skl "skl (2 commits)")[![bjornpost](https://avatars.githubusercontent.com/u/48628?v=4)](https://github.com/bjornpost "bjornpost (2 commits)")[![vsychov](https://avatars.githubusercontent.com/u/2186303?v=4)](https://github.com/vsychov "vsychov (2 commits)")[![QuingKhaos](https://avatars.githubusercontent.com/u/993350?v=4)](https://github.com/QuingKhaos "QuingKhaos (2 commits)")[![dharyk](https://avatars.githubusercontent.com/u/84982?v=4)](https://github.com/dharyk "dharyk (1 commits)")[![gpilla](https://avatars.githubusercontent.com/u/5465517?v=4)](https://github.com/gpilla "gpilla (1 commits)")

---

Tags

emailimappop3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/igorhouse-fetch/health.svg)

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

###  Alternatives

[php-imap/php-imap

Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)

1.7k12.9M42](/packages/php-imap-php-imap)[tedivm/fetch

A PHP IMAP Library

5061.2M8](/packages/tedivm-fetch)[ddeboer/imap

Object-oriented IMAP for PHP

9153.9M11](/packages/ddeboer-imap)[webklex/php-imap

PHP IMAP client

4365.5M14](/packages/webklex-php-imap)[benhall14/php-imap-reader

A PHP class that makes working with IMAP in PHP simple.

3516.6k](/packages/benhall14-php-imap-reader)[tedivm/dovecottesting

An IMAP Testing Suite

312.2k7](/packages/tedivm-dovecottesting)

PHPackages © 2026

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