PHPackages                             piv915/zf1-oauth2 - 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. piv915/zf1-oauth2

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

piv915/zf1-oauth2
=================

OAuth2 implementation for Zend Framework1

07PHP

Since Aug 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/piv915/zend-framework-1-oauth-2-library)[ Packagist](https://packagist.org/packages/piv915/zf1-oauth2)[ RSS](/packages/piv915-zf1-oauth2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

About:
======

[](#about)

Zend Framework 1 OAuth 2 Library

version 1.1.0

Examples:
=========

[](#examples)

Zend Framework 1 OAuth 2 examples.

Jamendo API OAuth 2
-------------------

[](#jamendo-api-oauth-2)

1. Add the latest Zend Framework and the Chrisweb library to the library directory.
2. Setup an Apache vhost for the example:

apache vhost.conf

```

    ServerName www.jamendoapioauth2.dev
    DocumentRoot /path/to/examples/JamendoApiOAuth2/public
    ErrorLog "logs/jamendoapioauth2-error.log"
    CustomLog "logs/jamendoapioauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"

        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all

```

3. Update your hosts file:

127.0.0.1 [www.jamendoapioauth2.dev](http://www.jamendoapioauth2.dev)

4. Create a Jamendi API account, then create a configuration file and add the values:

```
; application/configs/jamendo_api.ini

; http://developer.jamendo.com/v3.0/oauth2

; to get a jamendo api account visit: https://devportal.jamendo.com/

; jamendo api configuration
dialogEndpoint = https://api.jamendo.com/v3.0
oauthEndpoint = https://api.jamendo.com/v3.0
clientId = 0000000000
clientSecret = 0000000000000000000000000000
callbackUrl = http://www.jamendoapioauth2.dev/jamendocallback
oauthDialogUri = /oauth/authorize
accessTokenUri = /oauth/grant
stateSecret = afs4f4g8e4asgaas
grantType = authorization_code
requestedRights = music ; = scope
responseType = code ; = response_type

```

Facebook Open Graph API OAuth 2
-------------------------------

[](#facebook-open-graph-api-oauth-2)

1. Add the latest Zend Framework and the Chrisweb library to the library directory.
2. Setup an Apache vhost for the example:

apache vhost.conf

```

    ServerName www.facebookopengraphoauth2.dev
    DocumentRoot /path/to/examples/FacebookOpenGraphOAuth2/public
    ErrorLog "logs/facebookopengraphoauth2-error.log"
    CustomLog "logs/facebookopengraphoauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"

        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all

```

3. Update your hosts file:

127.0.0.1 [www.facebookopengraphoauth2.dev](http://www.facebookopengraphoauth2.dev)

4. Create a Facebook API account, then create a configuration file and add the values:

```
; application/configs/facebook_api.ini

; https://developers.facebook.com/docs/howtos/login/server-side-login/

; facebook api configuration
dialogEndpoint = https://www.facebook.com
oauthEndpoint = https://graph.facebook.com
clientId = 000000000000000000
clientSecret = 000000000000000000000000000000
callbackUrl = http://www.facebookopengraphoauth2.dev/facebookcallback
responseType = code ; or token, none, signed_request
oauthDialogUri = /dialog/oauth
accessTokenUri = /oauth/access_token
stateSecret = afs4f4g8e4asgaas
; permissions https://developers.facebook.com/docs/concepts/login/permissions-login-dialog/
requestedRights = email,user_actions.music,user_likes

```

Google+ API OAuth 2
-------------------

[](#google-api-oauth-2)

1. Add the latest Zend Framework and the Chrisweb library to the library directory.
2. Setup an Apache vhost for the example:

apache vhost.conf

```

    ServerName www.googleplusoauth2.dev
    DocumentRoot /path/to/examples/GooglePlusOAuth2/public
    ErrorLog "logs/googleplusoauth2-error.log"
    CustomLog "logs/googleplusoauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"

        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all

```

3. Update your hosts file:

127.0.0.1 [www.googleplusoauth2.dev](http://www.googleplusoauth2.dev)

4. Create a Google+ API account, then create a configuration file and add the values:

```
; application/configs/google_plus_api.ini

; https://developers.google.com/+/api/oauth

; google+ api configuration
dialogEndpoint = https://accounts.google.com/o/oauth2
oauthEndpoint = https://accounts.google.com/o/oauth2
clientId = 0000000000000000.apps.googleusercontent.com
clientSecret = 00000000000000000000000000000
responseType = code ; https://developers.google.com/accounts/docs/OAuth2Login#responsetypeparameter
callbackUrl = http://127.0.0.1/googlepluscallback
secretType =
immediate =
oauthDialogUri = /auth
accessTokenUri = /token
stateSecret = afs4f4g8e4asgaas
; google+ scopes https://developers.google.com/+/api/oauth#scopes
requestedRights = https://www.googleapis.com/auth/plus.login,https://www.googleapis.com/auth/plus.me,https://www.googleapis.com/auth/userinfo.email

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![chrisweb](https://avatars.githubusercontent.com/u/297978?v=4)](https://github.com/chrisweb "chrisweb (9 commits)")

### Embed Badge

![Health badge](/badges/piv915-zf1-oauth2/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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