PHP code example of ushahidi / gmail-support

1. Go to this page and download the library: Download ushahidi/gmail-support library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ushahidi / gmail-support example snippets


$app->register(Ushahidi\Gmail\GmailServiceProvider::class);

    'gmail' => [
        'client_id' => env('GMAIL_CLIENT_ID'),
        'client_secret' => env('GMAIL_CLIENT_SECRET'),
        'redirect_uri' => env('GMAIL_REDIRECT_URI','urn:ietf:wg:oauth:2.0:oob'),
    ]
bash
$ php artisan gmail:auth