Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javanile/php-imap2
PHP IMAP with OAUTH2
https://github.com/javanile/php-imap2
email imap oauth2 php
Last synced: 3 days ago
JSON representation
PHP IMAP with OAUTH2
- Host: GitHub
- URL: https://github.com/javanile/php-imap2
- Owner: javanile
- License: gpl-3.0
- Created: 2022-05-12T16:34:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T12:24:28.000Z (7 months ago)
- Last Synced: 2024-12-17T01:07:35.675Z (10 days ago)
- Topics: email, imap, oauth2, php
- Language: PHP
- Homepage: https://php-imap2.javanile.org/
- Size: 1.11 MB
- Stars: 54
- Watchers: 12
- Forks: 31
- Open Issues: 45
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ⭐ Give me a star, please! ⭐
---
![PHP IMAP2](docs/logo.png)
# 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
- PHP >= 7.0
## Install
```shell
composer require javanile/php-imap2
```or
Download latest release
## Usage
```php
$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](https://replit.com/@frabik/PHP-IMAP2-Google-Demo?v=1#main.php)
- Outlook Demo - **COMING SOON**## Contributors
- [dicode-nl](https://github.com/dicode-nl)
- [glensc](https://github.com/glensc)
- [bago](https://github.com/bago)## Other links
-
## Reference
### Microsoft Outlook
-
### IMAP & OAUTH
-
-
-