Giter VIP home page Giter VIP logo

gmailphp's Introduction

Sponsored by

Adeva logo

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 [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.