PHPackages                             yiisoft/yii2-authclient - 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. [Framework](/categories/framework)
4. /
5. yiisoft/yii2-authclient

ActiveYii2-extension[Framework](/categories/framework)

yiisoft/yii2-authclient
=======================

External authentication via OAuth and OpenID for the Yii framework

2.2.17(1y ago)4806.4M↓34.9%244[19 issues](https://github.com/yiisoft/yii2-authclient/issues)[3 PRs](https://github.com/yiisoft/yii2-authclient/pulls)20BSD-3-ClausePHPCI passing

Since Apr 13Pushed 1mo ago43 watchersCompare

[ Source](https://github.com/yiisoft/yii2-authclient)[ Packagist](https://packagist.org/packages/yiisoft/yii2-authclient)[ GitHub Sponsors](https://github.com/yiisoft)[ Fund](https://opencollective.com/yiisoft)[ RSS](/packages/yiisoft-yii2-authclient/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (5)Versions (42)Used By (20)Security (2)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

AuthClient Extension for Yii 2
==============================

[](#authclient-extension-for-yii-2)

This extension adds [OpenID](https://openid.net/), [OAuth](https://oauth.net/), [OAuth2](https://oauth.net/2/) and [OpenId Connect](https://openid.net/connect/)consumers for the [Yii framework 2.0](https://www.yiiframework.com).

For license information check the [LICENSE](https://github.com/yiisoft/yii2-authclient/blob/master/LICENSE.md)-file.

Documentation is at [docs/guide/README.md](https://github.com/yiisoft/yii2-authclient/blob/master/docs/guide/README.md).

[![Latest Stable Version](https://camo.githubusercontent.com/455e6ab62ba05a61cac199be11eec8fbe4705d55aad801e3339d53002dca19d3/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d61757468636c69656e742f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-authclient)[![Total Downloads](https://camo.githubusercontent.com/418035437023fb98b1da750646d4a6a13c501b0025402fa2eb87df4eeb26a25f/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d61757468636c69656e742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-authclient)[![Build Status](https://github.com/yiisoft/yii2-authclient/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-authclient/actions)[![codecov](https://camo.githubusercontent.com/4a3e56583719ab2b760e1d15168535f0c14f33de2c807816ec972570bc34b1d3/68747470733a2f2f636f6465636f762e696f2f67682f796969736f66742f796969322d61757468636c69656e742f67726170682f62616467652e737667)](https://codecov.io/gh/yiisoft/yii2-authclient)

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

[](#installation)

Important

- The minimum required [PHP](https://www.php.net/) version is PHP `7.4`.
- It works best with PHP `8`.

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```
composer require --prefer-dist yiisoft/yii2-authclient

```

or add

```
"yiisoft/yii2-authclient": "~2.2.0"
```

to the `require` section of your composer.json.

###  Health Score

68

—

FairBetter than 99% of packages

Maintenance68

Regular maintenance activity

Popularity67

Solid adoption and visibility

Community55

Growing community involvement

Maturity75

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~230 days

Total

37

Last Release

378d ago

Major Versions

2.2.17 → 22.x-dev2025-05-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/261a6249c6f605f3956a2fae40fbb813f6b2e1e6f2bf806180c851a965426e54?d=identicon)[cebe](/maintainers/cebe)

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

![](https://www.gravatar.com/avatar/23416c58e0dce33a8369451a4ca0e28666373594027debc10184b37ade6a926b?d=identicon)[qiangxue](/maintainers/qiangxue)

---

Top Contributors

[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (130 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (111 commits)")[![softark](https://avatars.githubusercontent.com/u/342857?v=4)](https://github.com/softark "softark (66 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (29 commits)")[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (20 commits)")[![rhertogh](https://avatars.githubusercontent.com/u/1292337?v=4)](https://github.com/rhertogh "rhertogh (10 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (7 commits)")[![Arhell](https://avatars.githubusercontent.com/u/26163841?v=4)](https://github.com/Arhell "Arhell (6 commits)")[![machour](https://avatars.githubusercontent.com/u/304450?v=4)](https://github.com/machour "machour (5 commits)")[![marty-macfly](https://avatars.githubusercontent.com/u/12715929?v=4)](https://github.com/marty-macfly "marty-macfly (5 commits)")[![Lesha701](https://avatars.githubusercontent.com/u/22198779?v=4)](https://github.com/Lesha701 "Lesha701 (4 commits)")[![s1lver](https://avatars.githubusercontent.com/u/4567634?v=4)](https://github.com/s1lver "s1lver (4 commits)")[![albertborsos](https://avatars.githubusercontent.com/u/7307145?v=4)](https://github.com/albertborsos "albertborsos (3 commits)")[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (3 commits)")[![mspirkov](https://avatars.githubusercontent.com/u/63721828?v=4)](https://github.com/mspirkov "mspirkov (3 commits)")[![pana1990](https://avatars.githubusercontent.com/u/6630197?v=4)](https://github.com/pana1990 "pana1990 (3 commits)")[![vkaylee](https://avatars.githubusercontent.com/u/37606192?v=4)](https://github.com/vkaylee "vkaylee (3 commits)")[![vistart](https://avatars.githubusercontent.com/u/864657?v=4)](https://github.com/vistart "vistart (2 commits)")[![lucianobaraglia](https://avatars.githubusercontent.com/u/374554?v=4)](https://github.com/lucianobaraglia "lucianobaraglia (2 commits)")[![hirenbhut93](https://avatars.githubusercontent.com/u/8121721?v=4)](https://github.com/hirenbhut93 "hirenbhut93 (2 commits)")

---

Tags

facebookgithubgooglehacktoberfestlinkedinoauthphptwittervkyii2apiauthoauthyii2OpenIdOpenID Connect

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yiisoft-yii2-authclient/health.svg)

```
[![Health](https://phpackages.com/badges/yiisoft-yii2-authclient/health.svg)](https://phpackages.com/packages/yiisoft-yii2-authclient)
```

###  Alternatives

[yiisoft/yii2-httpclient

HTTP client extension for the Yii framework

42911.4M322](/packages/yiisoft-yii2-httpclient)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40821.3M84](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2795.2M3](/packages/auth0-login)[yiisoft/yii2-apidoc

API Documentation generator for the Yii framework 2.0

260709.1k31](/packages/yiisoft-yii2-apidoc)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128790.7k](/packages/auth0-symfony)[digitalstars/simplevk

Powerful PHP library/framework for VK API bots, supporting LongPoll &amp; Callback &amp; OAuth

934.2k3](/packages/digitalstars-simplevk)

PHPackages © 2026

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