PHPackages                             anod/gmail-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. anod/gmail-imap

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

anod/gmail-imap
===============

API to work with Gmail using IMAP built on top of Zend Imap Library

v1.3.1(6y ago)728.7k9MITPHPPHP ^7.2

Since May 12Pushed 6y ago8 watchersCompare

[ Source](https://github.com/anod/gmail-imap-php)[ Packagist](https://packagist.org/packages/anod/gmail-imap)[ Docs](http://github.com/anod/gmail-imap-php)[ RSS](/packages/anod-gmail-imap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

GMAIL IMAP API in PHP
=====================

[](#gmail-imap-api-in-php)

Wrapper library above Gmail IMAP API.

Features
--------

[](#features)

The library extends Zend Imap Library, this way it provides all basic IMAP functionality. In addition it provides simple Gmail specific API for:

- OAUTH2 Authentication
- get UID of the message
- work with GMail labels: retrive, apply, remove
- Getting Gmail thread id
- Utility to convert Gmail message id representation: from big int to hex and opposite
- Archive message

TODO
----

[](#todo)

- move to inbox
- mark as read/unread

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

[](#requirements)

Composer

- Zend Imap Library

Usage example
-------------

[](#usage-example)

```
