minhajul / contact-exporter
contact-exporter
2.0
2021-02-09 16:08 UTC
Requires
- php: ^7.3|^7.4
- google/apiclient: ^2.9
- laravel/socialite: ^5.1
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2025-05-12 13:25:42 UTC
README
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.