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

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

gtunes/fetch
============

A PHP IMAP Library

v0.4.4(12y ago)016BSD-3-ClausePHPPHP &gt;=5.3.0

Since Nov 26Pushed 11y ago1 watchersCompare

[ Source](https://github.com/gtunes/Fetch)[ Packagist](https://packagist.org/packages/gtunes/fetch)[ Docs](http://github.com/tedivm/Fetch)[ RSS](/packages/gtunes-fetch/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Fetch
=====

[](#fetch)

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

Fetch was part of a large project, Mortar, which is hosted on Google Code. It is currently being migrated over to Github, as well as being updated to support modern php features. While the project is in flux I encourage you to try it out, but be careful about using it in a production environment without proper testing.

Installation
============

[](#installation)

The most easy way to install the library is via composer. To do so, you have to do the following:

```
php composer.phar require tedivm/fetch

```

Composer will then ask you which version you want to install. Until there are stable versions, by using "@dev" it'll install the latest version.

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.

```
require 'autoload.php';

$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";
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.2% 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 ~81 days

Total

4

Last Release

4674d ago

### Community

Maintainers

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

---

Top Contributors

[![tedivm](https://avatars.githubusercontent.com/u/121709?v=4)](https://github.com/tedivm "tedivm (30 commits)")[![Lumbendil](https://avatars.githubusercontent.com/u/184785?v=4)](https://github.com/Lumbendil "Lumbendil (6 commits)")[![gtunes](https://avatars.githubusercontent.com/u/5270782?v=4)](https://github.com/gtunes "gtunes (4 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)")[![sherblot](https://avatars.githubusercontent.com/u/448192?v=4)](https://github.com/sherblot "sherblot (1 commits)")[![bbcvasseur](https://avatars.githubusercontent.com/u/57189671?v=4)](https://github.com/bbcvasseur "bbcvasseur (1 commits)")[![asm89](https://avatars.githubusercontent.com/u/657357?v=4)](https://github.com/asm89 "asm89 (1 commits)")[![arabcoders](https://avatars.githubusercontent.com/u/1621552?v=4)](https://github.com/arabcoders "arabcoders (1 commits)")[![sgrodzicki](https://avatars.githubusercontent.com/u/712836?v=4)](https://github.com/sgrodzicki "sgrodzicki (1 commits)")

---

Tags

emailimappop3

### Embed Badge

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

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