PHPackages                             094ikis09/php-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. 094ikis09/php-imap

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

094ikis09/php-imap
==================

PHP IMAP with OAUTH2

2.3(2y ago)0131MITPHPPHP &gt;=7.0

Since Oct 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/094ikis09/php-imap)[ Packagist](https://packagist.org/packages/094ikis09/php-imap)[ Docs](https://github.com/javanile/php-imap2)[ RSS](/packages/094ikis09-php-imap/feed)WikiDiscussions master Synced today

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

[![PHP IMAP2](docs/logo.png)](docs/logo.png)

PHP IMAP2
=========

[](#php-imap2)

[![Linter](https://github.com/javanile/php-imap2/actions/workflows/linter.yml/badge.svg)](https://github.com/javanile/php-imap2/actions/workflows/linter.yml)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0

Install
-------

[](#install)

```
composer require javanile/php-imap2
```

or

Download latest release

Usage
-----

[](#usage)

```
$mbh = imap2_open($server, $username, $token, OP_XOAUTH2);
if (! $mbh) {
    error_log(imap2_last_error());
    throw new \RuntimeException('Unable to open the INBOX');
}
```

Gmail OAuth2
------------

[](#gmail-oauth2)

Scope:

Sandbox
-------

[](#sandbox)

- Gmail Demo - [https://phpsandbox.io/e/x/zwauf?layout=EditorPreview&amp;defaultPath=%2F&amp;theme=dark&amp;showExplorer=no&amp;openedFiles=](https://phpsandbox.io/e/x/zwauf?layout=EditorPreview&defaultPath=%2F&theme=dark&showExplorer=no&openedFiles=)
- Outlook Demo - **COMING SOON**

Contributors
------------

[](#contributors)

- [dicode-nl](https://github.com/dicode-nl)
- [glensc](https://github.com/glensc)

Other links
-----------

[](#other-links)

-

Reference
---------

[](#reference)

### Microsoft Outlook

[](#microsoft-outlook)

-

### IMAP &amp; OAUTH

[](#imap--oauth)

-
-
- [ddeboer/imap#443 (comment)](https://github.com/ddeboer/imap/issues/443#issuecomment-1172158902)

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Every ~0 days

Total

5

Last Release

894d ago

Major Versions

1.0.0 → 2.02023-10-10

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

2.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbaaf69e6e1804713f24e64b05c89994b6072fff4321a5509909d2f0078e18f4?d=identicon)[094ikis09](/maintainers/094ikis09)

---

Top Contributors

[![094ikis09](https://avatars.githubusercontent.com/u/5124680?v=4)](https://github.com/094ikis09 "094ikis09 (6 commits)")

---

Tags

googleoauthoauth2microsoftexchangeimapgmailoutlook

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/094ikis09-php-imap/health.svg)

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

###  Alternatives

[javanile/php-imap2

PHP IMAP with OAUTH2

62217.8k](/packages/javanile-php-imap2)[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.1M62](/packages/hwi-oauth-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41620.5M97](/packages/league-oauth2-google)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2439.3M34](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-microsoft

Microsoft OAuth 2.0 Client Provider for The PHP League OAuth2-Client

762.2M11](/packages/stevenmaguire-oauth2-microsoft)[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4645.2k2](/packages/and-oauth)

PHPackages © 2026

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