PHPackages                             adevait/gmail-wrapper - 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. [API Development](/categories/api)
4. /
5. adevait/gmail-wrapper

ActiveLibrary[API Development](/categories/api)

adevait/gmail-wrapper
=====================

A PHP client library that consumes Gmail APIs

1.0.1(8y ago)4767619[1 issues](https://github.com/adevait/GmailPHP/issues)MITPHPPHP &gt;=5.3.3

Since Jun 3Pushed 6y ago10 watchersCompare

[ Source](https://github.com/adevait/GmailPHP)[ Packagist](https://packagist.org/packages/adevait/gmail-wrapper)[ Docs](https://github.com/adevait/GmailPHP)[ RSS](/packages/adevait-gmail-wrapper/feed)WikiDiscussions master Synced 4w ago

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

Sponsored by

[![Adeva logo](https://camo.githubusercontent.com/f834793cdfdede820c4f8d171773d825a5e14cf42e7641c2254eaf5b53b18b01/68747470733a2f2f616465766169742e636f6d2f77702d636f6e74656e742f7468656d65732f61646576612f696d672f6c6f676f2e737667)](https://adevait.com/)

PHP Wrapper for Gmail API
=========================

[](#php-wrapper-for-gmail-api)

Description
-----------

[](#description)

GmailPHP is a PHP wrapper that makes it easier to use the messaging API provided by Google. This library makes use of [PHPMailer](https://github.com/PHPMailer/PHPMailer) and [Google's PHP SDK V1](https://github.com/google/google-api-php-client/tree/v1-master).

Installation:

GmailPHP is available via [Composer/Packagist](https://packagist.org/packages/adevait/gmail-wrapper), so you can easily install it by adding the following line to your composer.json file

`"adevait/gmail-wrapper": "1.0.*"`

or executing the following in you command line.

`composer require adevait/gmail-wrapper`

Usage notes:

In addition to the source code, example files with implementation of every function of this wrapper are added in the examples directory. Sample config file is also added, which content should be replaced with the real APP name, client details and developer key.

Available functions:

- Login (examples/login.php)
- Send message (examples/send.php)
- List messages (examples/messages.php)
- View message (examples/message\_details.php)
- Delete message (examples/delete.php)
- Add label (examples/add\_remove\_labels.php)
- List labels (examples/labels.php)
- Create label (examples/create\_label.php)

Additional functions that can be used similarly to the ones in the examples are removing a label, undoing a delete operation and creating a draft message.

License
-------

[](#license)

GmailPHP is released under the MIT license

Support
-------

[](#support)

Please direct any feedback to

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~745 days

Total

2

Last Release

2934d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6437259?v=4)[Katerina Trajchevska](/maintainers/trajchevska)[@trajchevska](https://github.com/trajchevska)

---

Top Contributors

[![trajchevska](https://avatars.githubusercontent.com/u/6437259?v=4)](https://github.com/trajchevska "trajchevska (23 commits)")[![TsTrv](https://avatars.githubusercontent.com/u/3759959?v=4)](https://github.com/TsTrv "TsTrv (2 commits)")

---

Tags

apigooglegmail

### Embed Badge

![Health badge](/badges/adevait-gmail-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/adevait-gmail-wrapper/health.svg)](https://phpackages.com/packages/adevait-gmail-wrapper)
```

###  Alternatives

[mediafigaro/google-analytics-api-symfony

Google Analytics API v4 Symfony

46179.1k](/packages/mediafigaro-google-analytics-api-symfony)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1143.6k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
