PHPackages                             holdmann/oauth2-superjobru - 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. holdmann/oauth2-superjobru

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

holdmann/oauth2-superjobru
==========================

SuperJob.ru OAuth 2.0 Client Provider for The PHP League OAuth2-Client

v1.0.0(2y ago)07MITPHP

Since Sep 18Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

Superjob.ru Provider for OAuth 2.0 Client
=========================================

[](#superjobru-provider-for-oauth-20-client)

[![Latest Stable Version](https://camo.githubusercontent.com/0c3f963c044117b60507bd0d6c81ff39b294e372c0468d57f01a38a3ddd06c25/68747470733a2f2f706f7365722e707567782e6f72672f686f6c646d616e6e2f6f61757468322d73757065726a6f6272752f762f737461626c65)](https://packagist.org/packages/holdmann/oauth2-superjobru)[![License](https://camo.githubusercontent.com/7c843cbd768ec80a64405854b7bc25b8433b3a7325fdf1e753099aa1413cf982/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f686f6c646d616e6e2f6f61757468322d73757065726a6f6272752e737667)](https://github.com/holdmann/oauth2-superjobru/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/cb2272fc072f8d87f0348b8d1613c9a3d646d56fa3d5a7bffbd2f0d009f12368/68747470733a2f2f7472617669732d63692e6f72672f686f6c646d616e6e2f6f61757468322d73757065726a6f6272752e737667)](https://travis-ci.org/holdmann/oauth2-superjobru)[![Code Coverage](https://camo.githubusercontent.com/915e162c8112f46b746eeb61b218ee9fe1e87413a9c5e9e4ab0a3091df54cf21/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686f6c646d616e6e2f6f61757468322d73757065726a6f6272752f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/holdmann/oauth2-superjobru/?branch=master)[![Code Quality](https://camo.githubusercontent.com/1565dc34d9f3b2b153703bc4f3f9b2958c56f072cf73f03419e89e8b4c62f4e9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686f6c646d616e6e2f6f61757468322d73757065726a6f6272752f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/holdmann/oauth2-superjobru/?branch=master)

This package provides [Superjob.ru](https://superjob.ru) OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

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

[](#installation)

The suggested installation method is via [composer](https://getcomposer.org/):

```
composer require holdmann/oauth2-superjobru
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

```
$provider = new Holdmann\OAuth2\Client\Provider\SuperjobRu([
    'clientId'     => '{client_id}',
    'clientSecret' => '{client_secret}',
    'redirectUri'  => '{redirect_uri}',
    'state'        => '{state}',
]);
```

### Authorization

[](#authorization)

```
if (!empty($_GET['error'])) {
    // Got an error, probably user denied access
    exit('Got error: ' . $_GET['error']);
}

if (empty($_GET['code'])) {
    // If we don't have an authorization code then get one
    $provider->authorize();
}

// Try to get an access token (using the authorization code grant)
$token = $provider->getAccessToken('authorization_code', [
    'code' => $_GET['code']
]);

// Optional: Now you have a token you can look up a users profile data
try {
    // We got an access token, let's now get the owner details
    $ownerDetails = $provider->getResourceOwner($token);

    // Use these details to create a new profile
    printf('Hello, %s!', $ownerDetails->getName());
} catch (\Exception $e) {
    // Failed to get user details
    exit('Something went wrong: ' . $e->getMessage());
}

// Use this to interact with an API on the users behalf
echo $token->accessToken;
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

967d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ac81c69b8ebf630b30c037fed03847c22547657c174cd568faeb81c53f693b9?d=identicon)[holdmann](/maintainers/holdmann)

---

Top Contributors

[![holdmann](https://avatars.githubusercontent.com/u/2150007?v=4)](https://github.com/holdmann "holdmann (1 commits)")

---

Tags

clientAuthenticationoauthoauth2authorizationsuperjob

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/holdmann-oauth2-superjobru/health.svg)

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

###  Alternatives

[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[cakedc/oauth2-cognito

Cognito OAuth 2.0 Client Provider for The PHP League OAuth2-Client

18597.7k](/packages/cakedc-oauth2-cognito)

PHPackages © 2026

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