PHPackages                             cloudi-fi/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. cloudi-fi/oauth2-kakao

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

cloudi-fi/oauth2-kakao
======================

Kakao OAuth 2.0 Client

1.0.1(3y ago)21.3kMITPHPPHP &gt;=5.5.0

Since Oct 21Pushed 3y agoCompare

[ Source](https://github.com/Cloudi-Fi/oauth2-kakao)[ Packagist](https://packagist.org/packages/cloudi-fi/oauth2-kakao)[ RSS](/packages/cloudi-fi-oauth2-kakao/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

1233d ago

### Community

Maintainers

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

### Embed Badge

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

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

###  Alternatives

[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

83416.7M61](/packages/knpuniversity-oauth2-client-bundle)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[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)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

153.2M7](/packages/microsoft-kiota-authentication-phpleague)

PHPackages © 2026

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