PHPackages                             xdrew/oauth2-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. xdrew/oauth2-odnoklassniki

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

xdrew/oauth2-odnoklassniki
==========================

Odnoklassniki provider for league/oauth2-client

0.2.2(9y ago)0521MITPHPPHP &gt;=5.5

Since Sep 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/xdrew/oauth2-odnoklassniki)[ Packagist](https://packagist.org/packages/xdrew/oauth2-odnoklassniki)[ RSS](/packages/xdrew-oauth2-odnoklassniki/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Odnoklassniki OAuth2 client provider
====================================

[](#odnoklassniki-oauth2-client-provider)

This package provides [Odnoklassniki](https://ok.ru) integration for [OAuth2 Client](https://github.com/thephpleague/oauth2-client) by the League.

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

[](#installation)

```
composer require xdrew/oauth2-odnoklassniki
```

Configuration
-------------

[](#configuration)

```
$provider = new xdrew\OAuth2\Client\Provider\Odnoklassniki([
    'clientId'     => '1234567',
    'clientPublic' => 'CBAPKGGLEBACACACA',
    'clientSecret' => 's0meRe4lLySEcRetC0De',
    'redirectUri'  => 'https://example.org/oauth-endpoint',
    'scopes'       => ['GET_EMAIL'], // OPTIONAL You should request access to this scope from ok.ru support to get user email
    'userFields'   => [''], // OPTIONAL
]);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Every ~9 days

Total

4

Last Release

3545d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1220667?v=4)[Andrei Velent](/maintainers/xdrew)[@xdrew](https://github.com/xdrew)

---

Top Contributors

[![xdrew](https://avatars.githubusercontent.com/u/1220667?v=4)](https://github.com/xdrew "xdrew (5 commits)")

---

Tags

packageleague

### Embed Badge

![Health badge](/badges/xdrew-oauth2-odnoklassniki/health.svg)

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

###  Alternatives

[vertisan/oauth2-twitch-helix

Twitch (new version Helix) OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1176.2k7](/packages/vertisan-oauth2-twitch-helix)[j4k/oauth2-vkontakte

Vkontakte provider for league/oauth2-client

1252.8k1](/packages/j4k-oauth2-vkontakte)[fof/passport

The OAuth2 (and Laravel passport) compatible oauth extension

3114.1k](/packages/fof-passport)

PHPackages © 2026

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