PHPackages                             rivervanrain/hybridauth - 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. rivervanrain/hybridauth

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

rivervanrain/hybridauth
=======================

PHP Social Authentication Library

3.8.2(3y ago)0171MITPHPPHP ^7.1 || ^8.0

Since Aug 4Pushed 1mo agoCompare

[ Source](https://github.com/RiverVanRain/hybridauth)[ Packagist](https://packagist.org/packages/rivervanrain/hybridauth)[ Docs](https://hybridauth.github.io)[ RSS](/packages/rivervanrain-hybridauth/feed)WikiDiscussions wzm Synced 5d ago

READMEChangelog (2)Dependencies (3)Versions (62)Used By (0)

[Hybridauth](https://hybridauth.github.io/)
-------------------------------------------

[](#hybridauth)

[![Build Status](https://camo.githubusercontent.com/e2256259a663ba94eddf29377c8d2e1c8e57dc9a92910e2c07eae63aca2af83a/68747470733a2f2f7472617669732d63692e6f72672f687962726964617574682f687962726964617574682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hybridauth/hybridauth) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/04820fb868843b05c7e6bd6b94667912779d08c500fa1b5996fdd564a4792468/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f687962726964617574682f687962726964617574682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hybridauth/hybridauth/?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/e37a43cab1eff4122054b68cb42ecc8f36131e0db38153bd2ba0f553b628e2b9/68747470733a2f2f706f7365722e707567782e6f72672f687962726964617574682f687962726964617574682f762f737461626c652e706e67)](https://packagist.org/packages/hybridauth/hybridauth) [![Join the chat at https://gitter.im/hybridauth/hybridauth](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/hybridauth/hybridauth?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Hybridauth enables developers to easily build social applications and tools to engage websites visitors and customers on a social level that starts off with social sign-in and extends to social sharing, users profiles, friends lists, activities streams, status updates and more.

The main goal of Hybridauth is to act as an abstract API between your application and the various social networks APIs and identities providers such as Facebook, Twitter and Google.

#### Usage

[](#usage)

Hybridauth provides a number of basic [examples](https://github.com/hybridauth/hybridauth/tree/master/examples). You can also find complete Hybridauth documentation at

```
$config = [
    'callback' => 'https://example.com/path/to/script.php',
    'keys' => [
        'key' => 'your-twitter-consumer-key',
        'secret' => 'your-twitter-consumer-secret',
    ],
];

try {
    $twitter = new Hybridauth\Provider\Twitter($config);

    $twitter->authenticate();

    $accessToken = $twitter->getAccessToken();
    $userProfile = $twitter->getUserProfile();
    $apiResponse = $twitter->apiRequest('statuses/home_timeline.json');
}
catch (\Exception $e) {
    echo 'Oops, we ran into an issue! ' . $e->getMessage();
}
```

#### Requirements

[](#requirements)

- PHP 5.4+
- PHP Session
- PHP cURL

#### Installation

[](#installation)

To install Hybridauth we recommend [Composer](https://getcomposer.org/), the now defacto dependency manager for PHP. Alternatively, you can download and use the latest release available at [Github](https://github.com/hybridauth/hybridauth/releases).

#### Versions Status

[](#versions-status)

VersionStatusRepositoryDocumentationPHP Version2.xMaintenance[v2](https://github.com/hybridauth/hybridauth/tree/v2)[v2](https://hybridauth.github.io/hybridauth/)&gt;= 5.33.xDevelopment[v3](https://github.com/hybridauth/hybridauth/)[v3](https://hybridauth.github.io/)&gt;= 5.44.xFuture----&gt;= 7.3#### Questions, Help and Support?

[](#questions-help-and-support)

For general questions (i.e, "how-to" questions), please consider using [StackOverflow](https://stackoverflow.com/questions/tagged/hybridauth) instead of the Github issues tracker. For convenience, we also have a \[low-activity\] [Gitter channel](https://gitter.im/hybridauth/hybridauth) if you want to get help directly from the community.

#### License

[](#license)

Hybridauth PHP Library is released under the terms of MIT License.

For the full Copyright Notice and Disclaimer, see [COPYING.md](https://github.com/hybridauth/hybridauth/blob/master/COPYING.md).

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance61

Regular maintenance activity

Popularity7

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor3

3 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 ~68 days

Recently: every ~213 days

Total

57

Last Release

1208d ago

Major Versions

v2.14.0 → v3.0.0-rc.102019-03-25

v2.15.0 → v3.0.02019-05-31

v2.17.0 → v3.1.02019-12-13

3.5.0 → v4.x-dev2020-09-26

v2.x-dev → v3.7.12021-11-05

PHP version history (4 changes)v2.1.0PHP &gt;=5.2.0

v3.0.0-beta.1PHP &gt;=5.4.0

v3.7.1PHP ^5.4 || ^7.0 || ^8.0

3.8.2PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/48ce15d46f86b7e95cdf6885d04dfdb9e633e72e80b4f9924fb20c0e39153c28?d=identicon)[rivervanrain](/maintainers/rivervanrain)

---

Top Contributors

[![ApacheEx](https://avatars.githubusercontent.com/u/1918108?v=4)](https://github.com/ApacheEx "ApacheEx (253 commits)")[![miled](https://avatars.githubusercontent.com/u/380139?v=4)](https://github.com/miled "miled (210 commits)")[![StorytellerCZ](https://avatars.githubusercontent.com/u/1715235?v=4)](https://github.com/StorytellerCZ "StorytellerCZ (168 commits)")[![sputnik73](https://avatars.githubusercontent.com/u/12626621?v=4)](https://github.com/sputnik73 "sputnik73 (53 commits)")[![chrisgraham](https://avatars.githubusercontent.com/u/195389?v=4)](https://github.com/chrisgraham "chrisgraham (43 commits)")[![nazar-pc](https://avatars.githubusercontent.com/u/928965?v=4)](https://github.com/nazar-pc "nazar-pc (19 commits)")[![RiverVanRain](https://avatars.githubusercontent.com/u/2176145?v=4)](https://github.com/RiverVanRain "RiverVanRain (14 commits)")[![davpsh](https://avatars.githubusercontent.com/u/6121462?v=4)](https://github.com/davpsh "davpsh (13 commits)")[![VladyslavKurmaz](https://avatars.githubusercontent.com/u/1977961?v=4)](https://github.com/VladyslavKurmaz "VladyslavKurmaz (13 commits)")[![dashohoxha](https://avatars.githubusercontent.com/u/1495805?v=4)](https://github.com/dashohoxha "dashohoxha (12 commits)")[![Ridder90](https://avatars.githubusercontent.com/u/6659829?v=4)](https://github.com/Ridder90 "Ridder90 (12 commits)")[![fedetorre](https://avatars.githubusercontent.com/u/2004681?v=4)](https://github.com/fedetorre "fedetorre (11 commits)")[![terehru](https://avatars.githubusercontent.com/u/623380?v=4)](https://github.com/terehru "terehru (11 commits)")[![jeffery](https://avatars.githubusercontent.com/u/175114?v=4)](https://github.com/jeffery "jeffery (10 commits)")[![abgit](https://avatars.githubusercontent.com/u/5169137?v=4)](https://github.com/abgit "abgit (8 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (8 commits)")[![sebilasse](https://avatars.githubusercontent.com/u/750300?v=4)](https://github.com/sebilasse "sebilasse (7 commits)")[![josf](https://avatars.githubusercontent.com/u/100313?v=4)](https://github.com/josf "josf (6 commits)")[![mourjan](https://avatars.githubusercontent.com/u/6086854?v=4)](https://github.com/mourjan "mourjan (6 commits)")[![jorgevrgs](https://avatars.githubusercontent.com/u/3728536?v=4)](https://github.com/jorgevrgs "jorgevrgs (6 commits)")

---

Tags

apifacebookgoogleAuthenticationoauthauthorizationtwitterOpenIdsocialapple

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rivervanrain-hybridauth/health.svg)

```
[![Health](https://phpackages.com/badges/rivervanrain-hybridauth/health.svg)](https://phpackages.com/packages/rivervanrain-hybridauth)
```

###  Alternatives

[hybridauth/hybridauth

PHP Social Authentication Library

3.4k8.5M94](/packages/hybridauth-hybridauth)[hwi/oauth-bundle

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

2.4k21.5M69](/packages/hwi-oauth-bundle)[opauth/opauth

Multi-provider authentication framework for PHP

1.6k783.4k58](/packages/opauth-opauth)[and/oauth

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

4645.2k2](/packages/and-oauth)[lorenzoferrarajr/lfj-opauth

LfjOpauth is a Zend Framework 2 module that enables support for many authentication providers through the Opauth framework.

2915.4k](/packages/lorenzoferrarajr-lfj-opauth)

PHPackages © 2026

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