SkillAgentSearch skills...

GmailPHP

A wrapper for Gmail API functions

Install / Use

/learn @adevait/GmailPHP
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="right">Sponsored by</p> <p align="right"><a href="https://adevait.com/"><img src="https://adevait.com/wp-content/themes/adeva/img/logo.svg" alt="Adeva logo" width="105" ></a></p>

PHP Wrapper for Gmail API

Description

GmailPHP is a PHP wrapper that makes it easier to use the messaging API provided by Google. This library makes use of PHPMailer and Google's PHP SDK V1.

Installation:

GmailPHP is available via Composer/Packagist, 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

GmailPHP is released under the MIT license

Support

Please direct any feedback to trajchevska@adevait.com

View on GitHub
GitHub Stars46
CategoryDevelopment
Updated10mo ago
Forks19

Languages

PHP

Security Score

67/100

Audited on May 28, 2025

No findings