javanile / php-imap2
PHP IMAP with OAUTH2
Installs: 120 779
Dependents: 1
Suggesters: 0
Security: 0
Stars: 54
Watchers: 12
Forks: 31
Open Issues: 45
Requires
- php: >=7.0
- zbateson/mail-mime-parser: ^2.2
Requires (Dev)
- phpunit/phpunit: ^6.5
Suggests
- ext-iconv: For best support/performance
- ext-mbstring: For best support/performance
README
⭐ Give me a star, please! ⭐
PHP IMAP2
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