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

ActiveLibrary

tunerprime/oauth2-kakao
=======================

Kakao OAuth 2.0 Client

071PHP

Since Jun 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tunerprime/oauth2-kakao)[ Packagist](https://packagist.org/packages/tunerprime/oauth2-kakao)[ RSS](/packages/tunerprime-oauth2-kakao/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

oauth2-kakao
============

[](#oauth2-kakao)

extension league/OAuth2-client version by Kakao

Composer install

```
composer require tunerprime/oauth2-kakao

```

Example Code

```
$provider = new TunerPrime\OAuth2\Client\Provider\Kakao([
    'clientId'     => '{kakao-client-Id}',
    'clientSecret' => '{kakao-client-secret}', // kakao isn't require clientsecret!
    'redirectUri'  => '{your-redirect-Uri}',
]);

if (!empty($_GET['error'])) {

    exit('Got error: ' . htmlspecialchars($_GET['error'], ENT_QUOTES, 'UTF-8'));

} elseif (empty($_GET['code'])) {

    $authUrl = $provider->getAuthorizationUrl();
    $_SESSION['oauth2state'] = $provider->getState();
    header('Location: ' . $authUrl);
    exit;

} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
    unset($_SESSION['oauth2state']);
    exit('Invalid state');

} else {

    $token = $provider->getAccessToken('authorization_code', [
        'code' => $_GET['code']
    ]);

    try {

        $ownerDetails = $provider->getResourceOwner($token);

        printf('Hello %s!', $ownerDetails->getPropertiesValue('nickname'));

    } catch (Exception $e) {

        exit('Something went wrong: ' . $e->getMessage());

    }

    // Use this to interact with an API on the users behalf
    echo $token->getToken();

    // Number of seconds until the access token will expire, and need refreshing
    echo $token->getExpires();
}

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

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

---

Top Contributors

[![tunerprime](https://avatars.githubusercontent.com/u/9063204?v=4)](https://github.com/tunerprime "tunerprime (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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