PHPackages                             jhaoda/socialite-mailru - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jhaoda/socialite-mailru

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

jhaoda/socialite-mailru
=======================

Mail.ru OAuth2 Provider for Laravel Socialite

v4.0.0(5y ago)2365.8k↓24.3%81MITPHPPHP ^7.2 || ^8.0

Since Apr 26Pushed 5y ago4 watchersCompare

[ Source](https://github.com/jhaoda/socialite-mailru)[ Packagist](https://packagist.org/packages/jhaoda/socialite-mailru)[ RSS](/packages/jhaoda-socialite-mailru/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (1)

MailRu OAuth2 Provider for Laravel Socialite
============================================

[](#mailru-oauth2-provider-for-laravel-socialite)

### 1. Installation

[](#1-installation)

`composer require jhaoda/socialite-mailru`

### 2. Service Provider

[](#2-service-provider)

- Remove `Laravel\Socialite\SocialiteServiceProvider` from your `providers[]` array in `config\app.php` if you have added it already.
- Add `SocialiteProviders\Manager\ServiceProvider` to your `providers[]` array in `config\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](http://laravel.com/docs/5.2/authentication#social-authentication).

### 3. Add the Event and Listeners

[](#3-add-the-event-and-listeners)

- Add `SocialiteProviders\Manager\SocialiteWasCalled::class` event to your `listen[]` array in `/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

[](#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

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~359 days

Recently: every ~447 days

Total

7

Last Release

1885d ago

Major Versions

v1.1.0 → v2.0.02016-04-28

v2.0.1 → v3.0.02017-01-26

v3.0.1 → v4.0.02021-03-21

PHP version history (3 changes)v1.0.0PHP &gt;=5.4.0

v2.0.0PHP ^5.6 || ^7.0

v4.0.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2151259?v=4)[JhaoDa](/maintainers/jhaoda)[@jhaoda](https://github.com/jhaoda)

---

Top Contributors

[![jhaoda](https://avatars.githubusercontent.com/u/2151259?v=4)](https://github.com/jhaoda "jhaoda (12 commits)")[![alexey-m-ukolov](https://avatars.githubusercontent.com/u/1778239?v=4)](https://github.com/alexey-m-ukolov "alexey-m-ukolov (1 commits)")[![va-fursenko](https://avatars.githubusercontent.com/u/16989618?v=4)](https://github.com/va-fursenko "va-fursenko (1 commits)")

---

Tags

laravellaravel-5-packagelaravel-6-packagelaravel-socialitemailrumailru-oauth2-provideroauth2php

### Embed Badge

![Health badge](/badges/jhaoda-socialite-mailru/health.svg)

```
[![Health](https://phpackages.com/badges/jhaoda-socialite-mailru/health.svg)](https://phpackages.com/packages/jhaoda-socialite-mailru)
```

###  Alternatives

[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

618.4M8](/packages/socialiteproviders-apple)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

421.9M5](/packages/socialiteproviders-instagram)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

556.0M19](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

621.3M7](/packages/socialiteproviders-laravelpassport)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

422.0M17](/packages/socialiteproviders-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
