PHPackages                             covobo/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. covobo/socialite-mailru

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

covobo/socialite-mailru
=======================

Mail.ru OAuth2 Provider for Laravel Socialite

1.0.1(6y ago)295MITPHPPHP ^5.6 || ^7.0

Since Nov 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/covobo/socialite-mailru)[ Packagist](https://packagist.org/packages/covobo/socialite-mailru)[ RSS](/packages/covobo-socialite-mailru/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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

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

Difference with jhaoda/socialite-mailru
---------------------------------------

[](#difference-with-jhaodasocialite-mailru)

The package jhaoda/socialite-mailru supports only legacy mailru OAuth2 based on connect.mail.ru authentification.

This package works with actual mailru OAuth2 based on oauth.mail.ru.

Package details
---------------

[](#package-details)

This package does not support additional mailru security feature "state". Package uses adhoc solution to pass mailru validation.

Installation
------------

[](#installation)

### 1. Setup your application on mail.ru

[](#1-setup-your-application-on-mailru)

See details here

### 2. Install package

[](#2-install-package)

`composer require covobo/socialite-mailru`

### 3. Service Provider

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

### 4. Add the Event and Listeners

[](#4-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 `Covobo\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 => [
        Covobo\SocialiteProviders\MailRu\MailRuExtendSocialite::class
    ],
];
```

### 5. Services Array and .env

[](#5-services-array-and-env)

Add to `config/services.php`:

```
'mailru' => [
    'client_id' => env('MAILRU_CLIENT_ID'),
    'client_secret' => env('MAILRU_CLIENT_SECRET'),
    'redirect' => env('MAILRU_REDIRECT'),
],
```

Append provider values to your `.env` file:

```
// other values above
MAILRU_CLIENT_ID=application_id
MAILRU_CLIENT_SECRET=application_secret
MAILRU_REDIRECT=https://yoursite.com/callback

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2373d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f3a3f63983fa4193b1338ba64e839fd97bf5989c411ae9eb3987205281c1d86?d=identicon)[covobo](/maintainers/covobo)

---

Top Contributors

[![covobo](https://avatars.githubusercontent.com/u/6328862?v=4)](https://github.com/covobo "covobo (7 commits)")

---

Tags

laravellaravel-socialitemailrumailru-oauth2-provideroauth2phpsocialite-providers

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/covobo-socialite-mailru/health.svg)](https://phpackages.com/packages/covobo-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)
