PHPackages                             petnovcz/imap - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. petnovcz/imap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

petnovcz/imap
=============

Simple IMAP wrapper - with events

1.2.2(9y ago)038BSD-3-ClausePHP

Since Mar 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/petnov/imap)[ Packagist](https://packagist.org/packages/petnovcz/imap)[ Docs](https://github.com/petnov/imap)[ RSS](/packages/petnovcz-imap/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (7)Used By (0)

Imap
====

[](#imap)

Simple IMAP wrapper.

---

[![Downloads total](https://camo.githubusercontent.com/66c34068d307e5b4d5d8570320683ed0208e3aace931e715779b73738b16a34f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696e6574726f2f696d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/minetro/imap)[![Latest stable](https://camo.githubusercontent.com/c3c7cbd69663f11556fd377d56cae0136cf46fe3c7238aec8bee584eda1783da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696e6574726f2f696d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/minetro/imap)

Discussion / Help
-----------------

[](#discussion--help)

[![Join the chat at https://gitter.im/Markette/Gopay](https://camo.githubusercontent.com/55812e4f9ba9100f9990f7af9ecb0e42736ae66fdb6e76d491996ec3044904ce/68747470733a2f2f696d672e736869656c64732e696f2f6769747465722f726f6f6d2f6d696e6574726f2f6e657474652e7376673f7374796c653d666c61742d737175617265)](https://gitter.im/minetro/nette?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Install
-------

[](#install)

```
$ composer require petnov/imap:~1.1.0
```

Usage
-----

[](#usage)

```
use Minetro\Imap\ImapReader;

$reader = new ImapReader('{yourdomain.cz:143/imap}INBOX', $username, $password);
$emails = $reader->read(ImapReader::CRITERIA_UNSEEN);

// Iterate all emails
foreach ($emails as $email) {

    // Iterate all email parts
    for ($i = 0; $i < $email->countBodies(); $i++) {

        // Get text (encode with right encoding..)
        $text = $email->getBodySectionText($i);

        echo $text;
    }
}
```

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~134 days

Total

6

Last Release

3479d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ab37fd0a46b7740aa92b70a82dc2fdf51e7f0488beadcb44e7f026f10f74f0c?d=identicon)[petnov](/maintainers/petnov)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (8 commits)")[![petnov](https://avatars.githubusercontent.com/u/1820686?v=4)](https://github.com/petnov "petnov (1 commits)")

### Embed Badge

![Health badge](/badges/petnovcz-imap/health.svg)

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

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k61.5M497](/packages/nette-php-generator)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89051.7M298](/packages/nette-robot-loader)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5165.2M68](/packages/symplify-monorepo-builder)[nette/component-model

⚛ Nette Component Model

28416.2M79](/packages/nette-component-model)[ublaboo/datagrid

DataGrid for Nette Framework: filtering, sorting, pagination, tree view, table view, translator, etc

3041.9M22](/packages/ublaboo-datagrid)[contributte/di

Extra contrib to nette/di

475.7M18](/packages/contributte-di)

PHPackages © 2026

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