PHPackages                             passasooz/php-email-reader - 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. passasooz/php-email-reader

ActiveLibrary

passasooz/php-email-reader
==========================

This library provides some functions to manage email out of the box

1.0(6y ago)725MITPHP

Since Jun 28Pushed 6y agoCompare

[ Source](https://github.com/passasooz/php-email-reader)[ Packagist](https://packagist.org/packages/passasooz/php-email-reader)[ RSS](/packages/passasooz-php-email-reader/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

php-email-reader
================

[](#php-email-reader)

A little IMAP reader for collect your e-mail messages in your web application

Getting Started
---------------

[](#getting-started)

Configure the array into config/mail.php with your data

### Installing

[](#installing)

Just paste this on your command line

```
composer require passasooz/php-email-reader

```

Configure config/mail.php with your imap data (for example)

```
return [

    'host' => '', //YOUR IMAP imap.gmail.com

    'port' => 993, //YOUR PORT 993

    'username' => '', //YOUR EMAIL francescopassanante@gmail.com

    'password' => '', //YOUR PASSWORD 123asd456qwe

    'protocol' => '' //YOUR PROTOCOL ssl

];

```

Example of usage in your php file

```
require_once 'path/to/Handler.php';
$handler = new \Handler\Handler();

```

Connect to IMAP

```
$handler->connect();

```

Disconnect from IMAP (require a $connection variable returned by connection to imap)

```
$handler->disconnect($connection);

```

Get all e-mail

```
$handler->all();

```

Get unseen e-mail

```
$handler->unseen();

```

Get seen e-mail

```
$handler->seen();

```

Get deleted e-mail

```
$handler->deleted();

```

To customize type of e-mail what you want list:

- **read criteria** -
- **extends Handler**
- **create function in your new Class** - for example

```
class Customize extends Handler {
	public function answered() {
		return $this->getEmails('ANSWERED');
	}
}

```

- **instance new class into a variable (i.e. $customize)**
- **just call**

```
$customize->answered();

```

Enjoy it :)

Built With
----------

[](#built-with)

- [Composer](https://getcomposer.org/download/) - Dependency Management

Authors
-------

[](#authors)

- **Francesco Passanante** - ()

License
-------

[](#license)

This project is licensed under the MIT License

Acknowledgments
---------------

[](#acknowledgments)

- Valerio Giacomelli for inspiration
- Me for patience ;)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2513d ago

### Community

Maintainers

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

---

Top Contributors

[![passasooz](https://avatars.githubusercontent.com/u/7440944?v=4)](https://github.com/passasooz "passasooz (2 commits)")

### Embed Badge

![Health badge](/badges/passasooz-php-email-reader/health.svg)

```
[![Health](https://phpackages.com/badges/passasooz-php-email-reader/health.svg)](https://phpackages.com/packages/passasooz-php-email-reader)
```

PHPackages © 2026

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