PHPackages                             jkbennemann/php-oauth-library - 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. jkbennemann/php-oauth-library

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

jkbennemann/php-oauth-library
=============================

Social Connect Fork for OAuth login

1.0(5y ago)012[1 PRs](https://github.com/jkbennemann/php-oauth-library/pulls)1MITPHPPHP &gt;=7.1CI passing

Since Jul 26Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jkbennemann/php-oauth-library)[ Packagist](https://packagist.org/packages/jkbennemann/php-oauth-library)[ RSS](/packages/jkbennemann-php-oauth-library/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (1)

Social Connection Authentication
================================

[](#social-connection-authentication)

[![Packagist](https://camo.githubusercontent.com/483675ab896ab1908e9431c2b80a038abaa0c6374900f4000a042e99c83c77da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6b62656e6e656d616e6e2f7068702d6f617574682d6c6962726172792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jkbennemann/php-oauth-library)[![License](https://camo.githubusercontent.com/e34c0af1f6ade4197eca50ade04ab8a187f3ee4ce19b0c4ecbcffd3b5ad7d7e7/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a6b62656e6e656d616e6e2f7068702d6f617574682d6c6962726172792e7376673f7374796c653d666c61742d737175617265)](https://github.com/jkbennemann/php-oauth-library/blob/master/LICENSE)

> Open source social sign on PHP. Connect your application(s) with social network(s).

Code examples you can find in [example](./example) directory

This library is a fork from [SocialConnect/auth](https://github.com/SocialConnect/auth)

Features
========

[](#features)

- **Functional**: support 30+ providers such as Facebook, Google, Twitter, GitHub, Vk and another.
- **Completely**: We supports all social sign standarts: OAuth1/OAuth2/OpenID/OpenIDConnect.
- **Follow standards**: We follow PSR-7/PSR-17/PSR-18 standards.
- **Modular**: Use only what, that you need, see [architecture overview](http://localhost:4000/architecture.html).
- **Quality**: CodeCoverage with 80%+ and We are using static analyzers.
- **Flexible**: Change configurations for any provider during runtime

Supported type of providers
---------------------------

[](#supported-type-of-providers)

- OAuth1 [spec RFC 5849](https://tools.ietf.org/html/rfc5849)
- OAuth2 [spec RFC 6749](https://tools.ietf.org/html/rfc6749)
- OpenID v1 (1.1) (WIP!) [spec](https://openid.net/specs/openid-authentication-1_1.html)
- OpenID v2 [spec](http://openid.net/specs/openid-authentication-2_0.html)
- OpenID Connect (1.0) [spec](http://openid.net/specs/openid-connect-core-1_0.html#OpenID.Discovery)
    - JWT (JSON Web Token) [spec RFC 7519](https://tools.ietf.org/html/rfc7519)
    - JWK (JSON Web Keys) [spec RFC 7517](https://tools.ietf.org/html/rfc7517)

Supported providers
-------------------

[](#supported-providers)

`SocialConnect/Auth` support 30+ providers such as Facebook, Google, Twitter, GitHub, Vk and another.

[See all 30+ provider](https://socialconnect.lowl.io/providers.html)

Installation &amp; Getting Started
----------------------------------

[](#installation--getting-started)

> Instead of installing the Socialconnect/auth composer package you may install this package `composer require jkbennemann/php-oauth-library`

For further documentation see [Installation &amp; Getting Started](https://socialconnect.lowl.io/installation.html)

Versions
--------

[](#versions)

VersionStatusEOLPHP Version[1.x](https://github.com/jkbennemann/php-oauth-library/tree/master)Current--&gt;= 7.1Contributors
============

[](#contributors)

This project exists thanks to all the people who contribute. Contributions are welcome!

### License

[](#license)

This project is open-sourced software licensed under the MIT License.

See the [LICENSE](LICENSE) file for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance61

Regular maintenance activity

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2114d ago

### Community

Maintainers

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

---

Top Contributors

[![jkbennemann](https://avatars.githubusercontent.com/u/25330395?v=4)](https://github.com/jkbennemann "jkbennemann (1 commits)")

---

Tags

amazonfacebookgoogleauthslackoauthbitbucketgithubgitlabtwitterloginvktwitchsocialconnect

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jkbennemann-php-oauth-library/health.svg)

```
[![Health](https://phpackages.com/badges/jkbennemann-php-oauth-library/health.svg)](https://phpackages.com/packages/jkbennemann-php-oauth-library)
```

###  Alternatives

[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M68](/packages/hwi-oauth-bundle)[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4645.2k2](/packages/and-oauth)[fof/oauth

Allow users to log in with GitHub, Facebook, Google, Discord, GitLab, LinkedIn, and more!

50118.7k41](/packages/fof-oauth)

PHPackages © 2026

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