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

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

fvzsf65536/fetch
================

A PHP IMAP Library

v0.7.1(10y ago)017BSD-3-ClausePHPPHP &gt;=5.3.0

Since Nov 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fvzsf65536/Fetch)[ Packagist](https://packagist.org/packages/fvzsf65536/fetch)[ Docs](http://github.com/tedious/Fetch)[ RSS](/packages/fvzsf65536-fetch/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (13)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.6.*"
}

```

### 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.

```
$server = new \Fetch\Server('imap.example.com', 993);
$server->setAuthentication('dummy', 'dummy');

$messages = $server->getMessages();
/** @var $message \Fetch\Message */
foreach ($messages as $message) {
    echo "Subject: {$message->getSubject()}\nBody: {$message->getMessageBody()}\n";
}

```

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~108 days

Recently: every ~147 days

Total

10

Last Release

3886d ago

### Community

Maintainers

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

---

Top Contributors

[![tedivm](https://avatars.githubusercontent.com/u/121709?v=4)](https://github.com/tedivm "tedivm (162 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)")[![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)")[![fvzsf65536](https://avatars.githubusercontent.com/u/8004950?v=4)](https://github.com/fvzsf65536 "fvzsf65536 (3 commits)")[![ge0ffray](https://avatars.githubusercontent.com/u/810054?v=4)](https://github.com/ge0ffray "ge0ffray (3 commits)")[![littleslicebigcity](https://avatars.githubusercontent.com/u/124756761?v=4)](https://github.com/littleslicebigcity "littleslicebigcity (3 commits)")[![skl](https://avatars.githubusercontent.com/u/514343?v=4)](https://github.com/skl "skl (2 commits)")[![QuingKhaos](https://avatars.githubusercontent.com/u/993350?v=4)](https://github.com/QuingKhaos "QuingKhaos (2 commits)")[![gries](https://avatars.githubusercontent.com/u/417823?v=4)](https://github.com/gries "gries (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)")[![dangerous](https://avatars.githubusercontent.com/u/419996?v=4)](https://github.com/dangerous "dangerous (1 commits)")[![orzilca](https://avatars.githubusercontent.com/u/1014282?v=4)](https://github.com/orzilca "orzilca (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/fvzsf65536-fetch/health.svg)

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

###  Alternatives

[php-imap/php-imap

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

1.7k12.7M37](/packages/php-imap-php-imap)[tedivm/fetch

A PHP IMAP Library

5151.2M6](/packages/tedivm-fetch)[ddeboer/imap

Object-oriented IMAP for PHP

9163.9M10](/packages/ddeboer-imap)[webklex/php-imap

PHP IMAP client

4305.2M12](/packages/webklex-php-imap)[benhall14/php-imap-reader

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

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

An IMAP Testing Suite

312.2k3](/packages/tedivm-dovecottesting)

PHPackages © 2026

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