PHPackages                             achertovsky/lib-oauth2-client - 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. achertovsky/lib-oauth2-client

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

achertovsky/lib-oauth2-client
=============================

2.0.0(1y ago)0629↓50%1MITPHPPHP &gt;=8.1

Since May 16Pushed 1y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (9)Used By (0)

User
====

[](#user)

Lib called to reduce hassle in projects with oauth2. Expected to be convenient solution for the purpose.

usage
-----

[](#usage)

To check usage cases, please, refer to `tests/unit/Oauth2Test.php`, `tests/unit/GoogleAuthenticatorTest.php`. Those tests explain how Oauth2 should be used in your application.

Development
===========

[](#development)

install env
-----------

[](#install-env)

```
docker build -t lib-oauth2-client .
docker run --rm -it -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp lib-oauth2-client composer i

```

testing
-------

[](#testing)

```
docker run --rm -it -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp lib-oauth2-client vendor/bin/phpunit

```

measuing coverage
-----------------

[](#measuing-coverage)

```
docker run --rm -it -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp lib-oauth2-client php -dpcov.enabled=1 -dpcov.directory=/tmp vendor/bin/phpunit --coverage-text

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Every ~80 days

Recently: every ~112 days

Total

8

Last Release

534d ago

Major Versions

0.2.0 → 1.0.02024-07-16

1.0.2 → 2.0.02024-11-30

### Community

Maintainers

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

---

Top Contributors

[![achertovsky](https://avatars.githubusercontent.com/u/13575044?v=4)](https://github.com/achertovsky "achertovsky (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/achertovsky-lib-oauth2-client/health.svg)

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

###  Alternatives

[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[facile-it/php-openid-client

OpenID (OIDC) Client

42592.7k7](/packages/facile-it-php-openid-client)[ecphp/cas-bundle

A bundle for Symfony, providing authentication against a Central Authentication Service (CAS) server.

48132.1k1](/packages/ecphp-cas-bundle)[ecphp/cas-lib

CAS Lib, a standard library for CAS authentication.

18166.9k4](/packages/ecphp-cas-lib)[oidc/core

OpenID Connect Core Library implementation for PHP

14110.9k](/packages/oidc-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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