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

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

hybridauth/hybridauth
=====================

PHP Social Authentication Library

v3.12.2(11mo ago)3.4k8.5M—8.3%1.1k[73 issues](https://github.com/hybridauth/hybridauth/issues)[15 PRs](https://github.com/hybridauth/hybridauth/pulls)20MITPHPPHP ^5.4 || ^7.0 || ^8.0

Since Aug 4Pushed 1mo ago203 watchersCompare

[ Source](https://github.com/hybridauth/hybridauth)[ Packagist](https://packagist.org/packages/hybridauth/hybridauth)[ Docs](https://hybridauth.github.io)[ RSS](/packages/hybridauth-hybridauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (68)Used By (20)Security (1)

[![GitHub stars](https://camo.githubusercontent.com/022d48f1bdcd3ca78230cf84f773ef590fc4834045162723d88bcd2f29898b37/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f687962726964617574682f687962726964617574682e737667)](https://github.com/hybridauth/hybridauth/stargazers)[![GitHub issues](https://camo.githubusercontent.com/1499071b6e36c92e058b06fd4857bed8d47f6a866d9bd12fadca94e433080e16/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f687962726964617574682f687962726964617574682e737667)](https://github.com/hybridauth/hybridauth/issues)

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://supportukrainenow.org/)

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

[](#hybridauth-313)

[![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

75

—

ExcellentBetter than 100% of packages

Maintenance73

Regular maintenance activity

Popularity76

Solid adoption and visibility

Community57

Growing community involvement

Maturity83

Battle-tested with a long release history

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

Recently: every ~173 days

Total

67

Last Release

334d 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

v2.18.0 → 3.7.02021-03-09

v2.x-dev → v3.8.02022-04-08

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

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

3.7.0PHP ^5.4 || ^7.0 || ^8.0

### Community

Maintainers

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

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

---

Top Contributors

[![ApacheEx](https://avatars.githubusercontent.com/u/1918108?v=4)](https://github.com/ApacheEx "ApacheEx (314 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 (59 commits)")[![chrisgraham](https://avatars.githubusercontent.com/u/195389?v=4)](https://github.com/chrisgraham "chrisgraham (50 commits)")[![nazar-pc](https://avatars.githubusercontent.com/u/928965?v=4)](https://github.com/nazar-pc "nazar-pc (19 commits)")[![pgroot91](https://avatars.githubusercontent.com/u/6934501?v=4)](https://github.com/pgroot91 "pgroot91 (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

facebookgooglehybridauthphpsocial-loginsocial-networkstwitterapifacebookgoogleAuthenticationoauthauthorizationtwitterOpenIdsocialapple

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[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)
