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

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

icm-services/fetch
==================

A PHP IMAP Library

v0.7.2(8y ago)022BSD-3-ClausePHPPHP &gt;=5.3.0

Since Nov 26Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ICM-Services/Fetch)[ Packagist](https://packagist.org/packages/icm-services/fetch)[ Docs](http://github.com/tedious/Fetch)[ RSS](/packages/icm-services-fetch/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (4)Versions (15)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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.1% 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 ~197 days

Recently: every ~387 days

Total

11

Last Release

2945d ago

### Community

Maintainers

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

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

---

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)")[![kevinsmith](https://avatars.githubusercontent.com/u/397904?v=4)](https://github.com/kevinsmith "kevinsmith (3 commits)")[![arabcoders](https://avatars.githubusercontent.com/u/1621552?v=4)](https://github.com/arabcoders "arabcoders (3 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)")[![skl](https://avatars.githubusercontent.com/u/514343?v=4)](https://github.com/skl "skl (2 commits)")[![gries](https://avatars.githubusercontent.com/u/417823?v=4)](https://github.com/gries "gries (2 commits)")[![QuingKhaos](https://avatars.githubusercontent.com/u/993350?v=4)](https://github.com/QuingKhaos "QuingKhaos (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)")[![tomsommer](https://avatars.githubusercontent.com/u/149171?v=4)](https://github.com/tomsommer "tomsommer (1 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/icm-services-fetch/health.svg)

```
[![Health](https://phpackages.com/badges/icm-services-fetch/health.svg)](https://phpackages.com/packages/icm-services-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)
