PHPackages                             vladrub/socialite-odnoklassniki - 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. vladrub/socialite-odnoklassniki

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

vladrub/socialite-odnoklassniki
===============================

Odnoklassniki OAuth2 Provider for Laravel Socialite

v3.0.4(8y ago)01.7kMITPHPPHP ^5.6 || ^7.0

Since Apr 26Pushed 8y ago1 watchersCompare

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

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

Odnoklassniki OAuth2 Provider for Laravel Socialite
===================================================

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

### 1. Installation

[](#1-installation)

`composer require jhaoda/socialite-odnoklassniki`

### 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\Odnoklassniki\OdnoklassnikiExtendSocialite::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\Odnoklassniki\OdnoklassnikiExtendSocialite::class
    ],
];
```

### 4. Services Array and .env

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

Add to `config/services.php`:

```
'odnoklassniki' => [
    'client_id' => env('ODNOKLASSNIKI_ID'),
    'client_secret' => env('ODNOKLASSNIKI_SECRET'),
    'client_public' => env('ODNOKLASSNIKI_PUBLIC'),
    'redirect' => env('ODNOKLASSNIKI_REDIRECT'),
],
```

Append provider values to your `.env` file: **Note: Add both public and secret keys!**

```
// other values above
ODNOKLASSNIKI_ID=your_app_id_for_the_service
ODNOKLASSNIKI_PUBLIC=your_app_public_for_the_service
ODNOKLASSNIKI_SECRET=your_app_secret_for_the_service
ODNOKLASSNIKI_REDIRECT=https://example.com/login

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~132 days

Recently: every ~105 days

Total

9

Last Release

2973d ago

Major Versions

v1.1.0 → v2.0.02016-04-28

v2.0.1 → v3.0.02017-01-26

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

v2.0.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee03a01ef4298f87c5c39dba16572cedeb9f02ae449949c5197e5120798038c3?d=identicon)[vladrub](/maintainers/vladrub)

---

Top Contributors

[![jhaoda](https://avatars.githubusercontent.com/u/2151259?v=4)](https://github.com/jhaoda "jhaoda (8 commits)")[![vladrub](https://avatars.githubusercontent.com/u/4814848?v=4)](https://github.com/vladrub "vladrub (5 commits)")[![va-fursenko](https://avatars.githubusercontent.com/u/16989618?v=4)](https://github.com/va-fursenko "va-fursenko (2 commits)")[![iwex](https://avatars.githubusercontent.com/u/4510068?v=4)](https://github.com/iwex "iwex (2 commits)")[![MCMatters](https://avatars.githubusercontent.com/u/3148853?v=4)](https://github.com/MCMatters "MCMatters (1 commits)")[![ishukshin](https://avatars.githubusercontent.com/u/2042805?v=4)](https://github.com/ishukshin "ishukshin (1 commits)")[![roquie](https://avatars.githubusercontent.com/u/3214290?v=4)](https://github.com/roquie "roquie (1 commits)")

### Embed Badge

![Health badge](/badges/vladrub-socialite-odnoklassniki/health.svg)

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

###  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)
