Download the PHP package javanile/php-imap2 without Composer
On this page you can find all versions of the php package javanile/php-imap2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-imap2

# PHP IMAP2 Modern IMAP extension wrapper for PHP with OAuth2 support. [](https://github.com/javanile/php-imap2/actions/workflows/linter.yml) [](LICENSE) [](https://www.php.net/) [](https://packagist.org/packages/javanile/php-imap2)
Overview
php-imap2 provides a lightweight and modern interface for working with IMAP mailboxes in PHP, including OAuth2 authentication support for providers like Gmail and Outlook.
Designed as a simple drop-in alternative for projects that need secure IMAP access without legacy authentication.
Features
- OAuth2 authentication support
- Gmail IMAP integration
- Outlook / Microsoft 365 support
- Lightweight API
- Compatible with native PHP IMAP workflows
- Easy integration into existing projects
Requirements
- PHP >= 7.0
- PHP IMAP extension enabled
Installation
Install via Composer:
Or download the latest release from GitHub.
Quick Start
Gmail OAuth2
Required OAuth scope:
Example IMAP server:
Microsoft Outlook / Office365
Example IMAP server:
OAuth2 authentication is supported using Microsoft identity platform access tokens.
Sandbox & Examples
Gmail Demo
Outlook Demo
Coming soon.
Error Handling
Contributing
Contributions, issues, and feature requests are welcome.
Feel free to open a pull request or start a discussion.
Contributors
Related Projects
References
Microsoft Outlook
IMAP & OAuth2
- https://www.atmail.com/blog/imap-commands/
- https://developers.google.com/gmail/imap/xoauth2-protocol
- https://github.com/ddeboer/imap/issues/443#issuecomment-1172158902
Support the Project
If this project helps you, consider supporting development: