jhaoda / Socialite Mailru
Licence: mit
MailRu OAuth2 Provider for Laravel Socialite
Stars: ✭ 25
Projects that are alternatives of or similar to Socialite Mailru
Sudo Su
Laravel package to easily login as other users during development.
Stars: ✭ 554 (+2116%)
Mutual labels: laravel, laravel-5-package
Rest Api With Lumen
Rest API boilerplate for Lumen micro-framework.
Stars: ✭ 464 (+1756%)
Mutual labels: laravel, oauth2
Lada Cache
A Redis based, fully automated and scalable database cache layer for Laravel
Stars: ✭ 424 (+1596%)
Mutual labels: laravel, laravel-5-package
Orm
A drop-in Doctrine ORM 2 implementation for Laravel 5+ and Lumen
Stars: ✭ 712 (+2748%)
Mutual labels: laravel, laravel-5-package
Telegram
✈️ Telegram Notifications Channel for Laravel
Stars: ✭ 450 (+1700%)
Mutual labels: laravel, laravel-5-package
Column Sortable
Package for handling column sorting in Laravel 5/6/7/8
Stars: ✭ 496 (+1884%)
Mutual labels: laravel, laravel-5-package
Jwt Auth Guard
JWT Auth Guard for Laravel and Lumen Frameworks.
Stars: ✭ 319 (+1176%)
Mutual labels: laravel, laravel-5-package
Laravel Video Chat
Laravel Video Chat using Socket.IO and WebRTC
Stars: ✭ 646 (+2484%)
Mutual labels: laravel, laravel-5-package
Laravel Mysql Spatial
MySQL Spatial Data Extension integration with Laravel.
Stars: ✭ 578 (+2212%)
Mutual labels: laravel, laravel-5-package
Laravel Server Monitor
Server Monitoring Command for Laravel Applications
Stars: ✭ 424 (+1596%)
Mutual labels: laravel, laravel-5-package
Angular5.2 Laravel5.6
Angular 5.2 and Laravel 5.6 Authentication and CRUD
Stars: ✭ 17 (-32%)
Mutual labels: laravel, laravel-5-package
Laravel Translation
Translation management for your Laravel application.
Stars: ✭ 350 (+1300%)
Mutual labels: laravel, laravel-5-package
Laravel Js Localization
🌐 Convert your Laravel messages and consume them in the front-end!
Stars: ✭ 451 (+1704%)
Mutual labels: laravel, laravel-5-package
Generator
Laravel 5.3+ Scaffold Generator, Support both bootstrap and Semantic UI
Stars: ✭ 327 (+1208%)
Mutual labels: laravel, laravel-5-package
Laravel Scout Mysql Driver
Laravel Scout MySQL Driver
Stars: ✭ 491 (+1864%)
Mutual labels: laravel, laravel-5-package
Laravel Log Enhancer
Make debugging easier by adding more data to your laravel logs (Laravel 5.6+)
Stars: ✭ 311 (+1144%)
Mutual labels: laravel, laravel-5-package
Laravel Widgetize
A minimal package to help you make your laravel application cleaner and faster.
Stars: ✭ 791 (+3064%)
Mutual labels: laravel, laravel-5-package
MailRu OAuth2 Provider for Laravel Socialite
1. Installation
composer require jhaoda/socialite-mailru
2. Service Provider
- Remove
Laravel\Socialite\SocialiteServiceProvider
from yourproviders[]
array inconfig\app.php
if you have added it already. - Add
SocialiteProviders\Manager\ServiceProvider
to yourproviders[]
array inconfig\app.php
.
For example:
'providers' => [
// a whole bunch of providers
// remove 'Laravel\Socialite\SocialiteServiceProvider',
SocialiteProviders\Manager\ServiceProvider::class, // add
];
- Note: If you would like to use the Socialite Facade, you need to install it.
3. Add the Event and Listeners
-
Add
SocialiteProviders\Manager\SocialiteWasCalled::class
event to yourlisten[]
array in<app_name>/Providers/EventServiceProvider
. -
Add your listeners (i.e. the ones from the providers) to the
SocialiteProviders\Manager\SocialiteWasCalled[]
that you just created. -
The listener that you add for this provider is
JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite::class
. -
Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
For example:
/**
* The event handler mappings for the application.
*
* @var array
*/
protected $listen = [
SocialiteProviders\Manager\SocialiteWasCalled::class => [
JhaoDa\SocialiteProviders\MailRu\MailRuExtendSocialite::class
],
];
4. Services Array and .env
Add to config/services.php
:
'mailru' => [
'client_id' => env('MAILRU_ID'),
'client_secret' => env('MAILRU_SECRET'),
'redirect' => env('MAILRU_REDIRECT'),
],
Append provider values to your .env
file:
// other values above
MAILRU_ID=your_app_id_for_the_service
MAILRU_SECRET=your_app_secret_for_the_service
MAILRU_REDIRECT=https://example.com/login
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].