luuhai48 / gmail-oauth2

Extension for Flarum. Send email using Google API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gmail-Oauth2

License Latest Stable Version

A Flarum extension. Send email using Google API.


Installation

Install the extension

composer require luuhai48/gmail-oauth2

Note: This requires to install the package google/apiclient-services, which comes with over 200 services and can be unecessary. Include this in your composer.json file before installing the package to only keep what we need.

{
    ...
    "scripts": {
        "pre-autoload-dump": "Google\\Task\\Composer::cleanup"
    },
    "extra": {
        "google/apiclient-services": [
            "Oauth2"
        ]
    }
}

Or run: composer dump-autoload -o to run the cleanup again.

Follow this instruction to create a Google Oauth2 App https://github.com/PHPMailer/PHPMailer/wiki/Using-Gmail-with-XOAUTH2

  • Redirect URI: must be your-website-address/gmail-oauth2

After that, you will get your client_id and client_secret.

Updating

composer update luuhai48/gmail-oauth2

Links

About

Extension for Flarum. Send email using Google API.

License:MIT License


Languages

Language:PHP 59.7%Language:JavaScript 40.3%