yourfightsite / mailchimp-socialite-provider
A Mailchimp provider for Laravel Socialite.
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.0
2020-09-09 15:50 UTC
Requires
- illuminate/support: ^5.0|^6.0|^7.0|^8.0
- laravel/socialite: ^4.0|^5.0
Suggests
- yourfightsite/mailchimp-marketing-php: A version of the Mailchimp Marketing API that is actually installable.
This package is not auto-updated.
Last update: 2024-01-26 07:34:33 UTC
README
A Mailchimp provider for Laravel Socialite.
Installation
This package can be installed using Composer:
composer require yourfightsite/mailchimp-socialite-provider
Usage
This package adds a Socialite provider that can be used using the mailchimp
key:
/** * Redirect the user to the Mailchimp authentication page. * * @param \Illuminate\Http\Request $request * @param \App\Website $website * @return \Illuminate\Http\Response */ public function redirectToProvider(Request $request, Website $website) { return Socialite::driver('mailchimp')->redirect(); } /** * Obtain the user information from Mailchimp. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function handleProviderCallback(Request $request) { $user = Socialite::driver('mailchimp')->user(); }
License
Licensed under the MIT License.