Skip to content

If you want to get user's contacts attached with gmail, this package will save your time a lot.

License

Notifications You must be signed in to change notification settings

minhajul/contact-exporter

Repository files navigation

Contact Exporter

If you want to get user's contacts attached with gmail, this package will save your time a lot.

Installation

You can install the package via composer:

composer require minhajul/contact-exporter

You can publish and run the config file by running the below command:

php artisan vendor:publish --provider="Minhajul\ContactExporter\ContactExporterServiceProvider" --tag="config"

Usage

use Illuminate\Support\Facades\Route;
use Minhajul\ContactExporter\ContactExporter;

Route::get('your-url', function () {
    // This will redirect you to the gmail callback url 
    return ContactExporter::initiate('google');
});
 
Route::get('your-gmail-callback-url', function () {
    // This below code will return you the array of contacts you have saved in your gmail
    return ContactExporter::getContacts('google');
});

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

If you want to get user's contacts attached with gmail, this package will save your time a lot.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages