php-imap2
php-imap2 copied to clipboard
PHP IMAP with OAUTH2
⭐ Give me a star, please! ⭐


Requirements
- PHP >= 7.0
Install
composer require javanile/php-imap2
or
Download latest release
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
Scope: https://mail.google.com/
Sandbox
- Gmail Demo
- Outlook Demo - COMING SOON
