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

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

gutter/hybridauth
=================

hybridauth/hybridauth integration for Nette Framework

v2.0.5(8y ago)02.5k1PHPPHP ^7.2

Since Apr 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/davidkastanek/hybridauth)[ Packagist](https://packagist.org/packages/gutter/hybridauth)[ RSS](/packages/gutter-hybridauth/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

Gutter\\HybridAuth
==================

[](#gutterhybridauth)

This is [hybridauth/hybridauth](https://github.com/hybridauth/hybridauth) integration for Nette Framework.

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

[](#installation)

The best way to install Gutter\\HybridAuth is via [Composer](http://getcomposer.org/):

```
$ composer require gutter/hybridauth

```

Usage
-----

[](#usage)

You can use the HybridAuth as an extension.

### Configuration

[](#configuration)

First you have to set the extension up in `config.neon`.

```
extensions:
    hybridAuth: Gutter\HybridAuth\DI\HybridAuthExtension

hybridAuth:
    base_url: https://myapp.com/auth/process
    providers:
        Google:
            enabled: true
            keys:
                id: [your-google-key]
                secret: [your-google-secret]
        Facebook:
            enabled: true
            keys:
                id: [your-facebook-key]
                secret: [your-facebook-secret]
            scope: email

```

### Implementation

[](#implementation)

Then the implementation of `/auth` controller could look like this:

```
class AuthPresenter extends BasePresenter
{
    /** @var \Gutter\HybridAuth\Manager @inject */
    public $hybridAuth;

    /** @var AuthModel @inject */
    public $model;

    public function actionProcess()
    {
        $this->hybridAuth->process();
    }

    public function actionGoogle()
    {
        $adapter = $this->hybridAuth->authenticate('Google');
        $userProfile = $adapter->getUserProfile();

        $user = $this->model->getUserByEmail($userProfile->email);
        if ($user) {
            $this->login($user);
        }

        $this->redirect('Login:failed');
    }

    public function actionFacebook()
    {
        $adapter = $this->hybridAuth->authenticate('Facebook');
        $userProfile = $adapter->getUserProfile();

        $user = $this->model->getUserByEmail($userProfile->email);
        if ($user) {
            $this->login($user);
        }

        $this->redirect('Login:failed');
    }
}

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~103 days

Recently: every ~0 days

Total

8

Last Release

2949d ago

Major Versions

v1.0.1 → v2.0.02018-04-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/86d377b0da46ff539ece75369b506cfe6a28773e58c6e9d3e894451d734460d0?d=identicon)[kastanekdavid](/maintainers/kastanekdavid)

---

Top Contributors

[![davidkastanek](https://avatars.githubusercontent.com/u/4254731?v=4)](https://github.com/davidkastanek "davidkastanek (12 commits)")[![michallohnisky](https://avatars.githubusercontent.com/u/4747059?v=4)](https://github.com/michallohnisky "michallohnisky (1 commits)")

---

Tags

netteAuthenticationhybridauth

### Embed Badge

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

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

###  Alternatives

[nette/security

🔑 Nette Security: provides authentication, authorization and a role-based access control management via ACL (Access Control List)

3839.3M279](/packages/nette-security)[contributte/recaptcha

Google reCAPTCHA for Nette - Forms

421.3M4](/packages/contributte-recaptcha)[vojtech-dobes/nette-multi-authenticator

Allows definition of multiple authentication ways with unified API (for Nette Framework).

374.7k](/packages/vojtech-dobes-nette-multi-authenticator)

PHPackages © 2026

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