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

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

kobas/oauth2-kobas
==================

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

1.0(7y ago)123.4k↓40.7%1MITPHP

Since Oct 10Pushed 7y ago2 watchersCompare

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

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

Kobas Provider for OAuth 2.0 Client
===================================

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

[![Latest Version](https://camo.githubusercontent.com/9466774a1420113b38b53ec3a98f4afe67d2fc743a3eb383f901c81e60c01d88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4b4f424153536f6674776172652f6f61757468322d6b6f6261732e7376673f7374796c653d666c61742d737175617265)](https://github.com/KOBASSoftware/oauth2-kobas/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e66a2013b519b32a9f29282242f51218d02a7e7e1ddf2dc31016cf002cb8d693/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4b4f424153536f6674776172652f6f61757468322d6b6f6261732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/KOBASSoftware/oauth2-kobas)[![Coverage Status](https://camo.githubusercontent.com/fb14c9bcf766985bb96e339abe62c20f2dcfcad7b3e404f88dc42bff065b82ab/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4b4f424153536f6674776172652f6f61757468322d6b6f6261732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/KOBASSoftware/oauth2-kobas/code-structure)[![Quality Score](https://camo.githubusercontent.com/245290bd2bc3443191dc1c4f4a9a0c0b61a10223822f79f866477812b325bd37/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4b4f424153536f6674776172652f6f61757468322d6b6f6261732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/KOBASSoftware/oauth2-kobas)[![Total Downloads](https://camo.githubusercontent.com/d44497aeea1adcde0c0da47985cf22ebf8d745253c6dfa61bebbac3f357c84e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f6261732f6f61757468322d6b6f6261732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/KOBASSoftware/oauth2-kobas)

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

If you are doing an integration for Kobas it's more likely you want our [API Client](https://github.com/KOBASSoftware/api-client-php) which uses this library.

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

[](#installation)

To install, use composer:

```
composer require kobas/oauth2-kobas

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Kobas\OAuth2\Client\Provider\Kobas` as the provider.

### Authorization Code Flow

[](#authorization-code-flow)

```
$provider = new Kobas\OAuth2\Client\Provider\Kobas([
    'clientId'          => '{kobas-client-id}',
    'clientSecret'      => '{kobas-client-secret}',
    'companyId'         => '{kobas-company-id}',
]);

$accessToken = $provider->getAccessToken('client_credentials', ['scope' => 'integration']);
```

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

The MIT License (MIT). Please see [License File](https://github.com/kobas/oauth2-kobas/blob/master/LICENSE) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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

Unknown

Total

1

Last Release

2778d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94ac0ec318be353da4f3451693838d0bd64c86cf8b3aa242d2314e574d169a39?d=identicon)[Seanmcn](/maintainers/Seanmcn)

---

Top Contributors

[![seanmcn](https://avatars.githubusercontent.com/u/1639126?v=4)](https://github.com/seanmcn "seanmcn (11 commits)")

---

Tags

clientoauthoauth2authorizationauthorisationkobas

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[stevenmaguire/oauth2-keycloak

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

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[omines/oauth2-gitlab

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

36721.5k13](/packages/omines-oauth2-gitlab)

PHPackages © 2026

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