PHPackages                             alexmasterov/oauth2-superjob - 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. alexmasterov/oauth2-superjob

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

alexmasterov/oauth2-superjob
============================

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

1.0.0(9y ago)069MITPHP

Since Nov 26Pushed 8y agoCompare

[ Source](https://github.com/AlexMasterov/oauth2-superjob)[ Packagist](https://packagist.org/packages/alexmasterov/oauth2-superjob)[ RSS](/packages/alexmasterov-oauth2-superjob/feed)WikiDiscussions master Synced 2mo ago

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

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/e339d5f7abd8265a979637cbfb491766dfbb0c68afe5bf9e40cc846a6284a08a/68747470733a2f2f706f7365722e707567782e6f72672f616c65786d61737465726f762f6f61757468322d73757065726a6f622f762f737461626c65)](https://packagist.org/packages/alexmasterov/oauth2-superjob)[![License](https://camo.githubusercontent.com/af5968398c1c7daeaba5b73f6b8e3c40fef87907cfe630f35bc0457ca9073ee1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c65786d61737465726f762f6f61757468322d73757065726a6f622e737667)](https://github.com/AlexMasterov/oauth2-superjob/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/37d7fb8dd829bac0a73c58e25e9dd44832bb2c034d9296b3ae29bd044162d17a/68747470733a2f2f7472617669732d63692e6f72672f416c65784d61737465726f762f6f61757468322d73757065726a6f622e737667)](https://travis-ci.org/AlexMasterov/oauth2-superjob)[![Code Coverage](https://camo.githubusercontent.com/a3ab5fe7fd427e2d2270c055fdfedc4f58de52c614be66e386ff18fe2c837203/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c65784d61737465726f762f6f61757468322d73757065726a6f622f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AlexMasterov/oauth2-superjob/?branch=master)[![Code Quality](https://camo.githubusercontent.com/d234c0f24614cd20fd6c2e38c4a502035fcaf045a2a7d1f2ea7a6c647d0c2ae2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c65784d61737465726f762f6f61757468322d73757065726a6f622f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AlexMasterov/oauth2-superjob/?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 alexmasterov/oauth2-superjob
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

```
$provider = new AlexMasterov\OAuth2\Client\Provider\SuperJob([
    '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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

3406d ago

Major Versions

0.1.0 → 1.0.02017-01-13

### Community

Maintainers

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

---

Top Contributors

[![AlexMasterov](https://avatars.githubusercontent.com/u/700213?v=4)](https://github.com/AlexMasterov "AlexMasterov (17 commits)")

---

Tags

league-oauth2oauth2oauth2-provideroauth2-superjobclientAuthenticationoauthoauth2authorizationsuperjob

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexmasterov-oauth2-superjob/health.svg)

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

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