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

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

tzmartin/hybridauth-gae
=======================

Hybridauth for Google App Engine PHP interpreter. This fixes cUrl and provides a model layer for unified auth management on GAE. Forked from v2.2.0.

v2.2.1(11y ago)137(MIT or GPL-3.0+)PHPPHP &gt;=5.2.0

Since Mar 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tzmartin/hybridauth-gae)[ Packagist](https://packagist.org/packages/tzmartin/hybridauth-gae)[ Docs](http://hybridauth.sourceforge.net)[ RSS](/packages/tzmartin-hybridauth-gae/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (6)Used By (0)

HybridAuth for Google App Engine (PHP)
======================================

[](#hybridauth-for-google-app-engine-php)

This release makes [HybridAuth](http://hybridauth.sourceforge.net) compatible with the GAE PHP interpreter and enables you to offer users multiple sign in options for your GAE application, not just Google Accounts.

### Design Goal

[](#design-goal)

The main goal is to act as an abstract API between your application and various social apis and identities providers (such as Facebook, Twitter or Github), while still leveraging the native User APIs on App Engine and Google's single sign on capabilities.

Previously, HybridAuth did not play well with GAE due to GAE's lack of support for cUrl and the decoupling of HybridAuth's authentication flow with the native GAE User APIs.

This fork addresses these concerns while introducing a unified model layer for authentication and profile normalization.

### Features:

[](#features)

- Leverages Memcache for session management.
- Fixes the cUrl limitation by leveraging `file_get_contents` (see [Purl-GAE](http://github.com/tzmartin/purl-gae) project)
- Adds a model class for normalizing logic, sessions and user data between the native Google Accounts and HybridAuth.
- Adds helper methods for simpler data access across all social adapters and GAE's auth.

You can leverage a single API for authentication that follows GAE's native implementation.

**Example:**

```
require_once 'Model.User.php';

$User = new UserModel;

// Create auth URL
$url = $User->createLoginUrl($_GET['provider'],'/auth?provider='.$_GET['provider']);

// Start authentication flow
$User->authenticate( $_GET['provider'], array('hauth_return_to' => $url) );

```

### Demo

[](#demo)

Live demo:

Source:

Install
-------

[](#install)

If using composer, add to `composer.json`

```
{
    "require": {
        "tzmartin/hybridauth-gae”: "*",
    }
}

```

Then update (or install)

```
composer update

```

**Old school install**

You can drop in the `Hybrid` folder located at `hybridauth/Hybrid/`.

How to use
----------

[](#how-to-use)

Refer to the demo source for explicit usage:

**Note:**HybridAuth contains a `Providers` folder that is used to register available provider classes available for your application. Additional provider classes are available in the `additional-providers` root folder that can be dropped in as needed.

Additional info
---------------

[](#additional-info)

Refer to [HybridAuth](http://hybridauth.sourceforge.net/apidoc.html)'s documentation for social provider coverage and APIs.

### License

[](#license)

The MIT License (MIT)

Copyright (c) 2014 Terry Z Martin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor7

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

Total

4

Last Release

4366d ago

PHP version history (2 changes)3.0.0.x-devPHP &gt;=5.3.0

v2.2.0PHP &gt;=5.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/139472?v=4)[tz ✨](/maintainers/tzmartin)[@tzmartin](https://github.com/tzmartin)

---

Top Contributors

[![StorytellerCZ](https://avatars.githubusercontent.com/u/1715235?v=4)](https://github.com/StorytellerCZ "StorytellerCZ (12 commits)")[![dashohoxha](https://avatars.githubusercontent.com/u/1495805?v=4)](https://github.com/dashohoxha "dashohoxha (11 commits)")[![fedetorre](https://avatars.githubusercontent.com/u/2004681?v=4)](https://github.com/fedetorre "fedetorre (11 commits)")[![jeffery](https://avatars.githubusercontent.com/u/175114?v=4)](https://github.com/jeffery "jeffery (10 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)")[![SocalNick](https://avatars.githubusercontent.com/u/294123?v=4)](https://github.com/SocalNick "SocalNick (6 commits)")[![tzmartin](https://avatars.githubusercontent.com/u/139472?v=4)](https://github.com/tzmartin "tzmartin (4 commits)")[![rwohleb](https://avatars.githubusercontent.com/u/11711?v=4)](https://github.com/rwohleb "rwohleb (4 commits)")[![pavlyuts](https://avatars.githubusercontent.com/u/6569739?v=4)](https://github.com/pavlyuts "pavlyuts (3 commits)")[![sleptor](https://avatars.githubusercontent.com/u/1132612?v=4)](https://github.com/sleptor "sleptor (3 commits)")[![garagesocial](https://avatars.githubusercontent.com/u/2416014?v=4)](https://github.com/garagesocial "garagesocial (3 commits)")[![guiltar](https://avatars.githubusercontent.com/u/1562290?v=4)](https://github.com/guiltar "guiltar (3 commits)")[![ChrisFrench](https://avatars.githubusercontent.com/u/210848?v=4)](https://github.com/ChrisFrench "ChrisFrench (3 commits)")[![cschramm](https://avatars.githubusercontent.com/u/464848?v=4)](https://github.com/cschramm "cschramm (3 commits)")[![johnnycaol](https://avatars.githubusercontent.com/u/3135448?v=4)](https://github.com/johnnycaol "johnnycaol (3 commits)")[![XSmeets](https://avatars.githubusercontent.com/u/5366388?v=4)](https://github.com/XSmeets "XSmeets (3 commits)")[![mindon](https://avatars.githubusercontent.com/u/510257?v=4)](https://github.com/mindon "mindon (2 commits)")[![atukai](https://avatars.githubusercontent.com/u/308995?v=4)](https://github.com/atukai "atukai (2 commits)")[![crodas](https://avatars.githubusercontent.com/u/36463?v=4)](https://github.com/crodas "crodas (2 commits)")

---

Tags

facebookgoogleoauthtwitterOpenIdloginsocialyahoohybridauth

### Embed Badge

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

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

###  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)[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)

PHPackages © 2026

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