PHPackages                             zendframework/zend-expressive-authentication-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. [HTTP &amp; Networking](/categories/http)
4. /
5. zendframework/zend-expressive-authentication-oauth2

Abandoned → [mezzio/mezzio-authentication-oauth2](/?search=mezzio%2Fmezzio-authentication-oauth2)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

zendframework/zend-expressive-authentication-oauth2
===================================================

OAuth2 (server) authentication middleware for Expressive and PSR-7 applications.

2.0.0(6y ago)3486.7k↓100%19[10 issues](https://github.com/zendframework/zend-expressive-authentication-oauth2/issues)BSD-3-ClausePHPPHP ^7.1

Since Nov 20Pushed 6y ago15 watchersCompare

[ Source](https://github.com/zendframework/zend-expressive-authentication-oauth2)[ Packagist](https://packagist.org/packages/zendframework/zend-expressive-authentication-oauth2)[ RSS](/packages/zendframework-zend-expressive-authentication-oauth2/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (10)Versions (23)Used By (0)

OAuth2 server middleware for Expressive and PSR-7 applications
==============================================================

[](#oauth2-server-middleware-for-expressive-and-psr-7-applications)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [mezzio/mezzio-authentication-oauth2](https://github.com/mezzio/mezzio-authentication-oauth2).

[![Build Status](https://camo.githubusercontent.com/bd14b4f506824d668941323490b9c4f4ceacb2167884edc1c9257be2ad13236e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d657870726573736976652d61757468656e7469636174696f6e2d6f61757468322e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-expressive-authentication-oauth2)[![Coverage Status](https://camo.githubusercontent.com/fb131abb87fe79e89253e6a9dd9a4f403fcdc40d792b0c2545f2a622b178fc75/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d657870726573736976652d61757468656e7469636174696f6e2d6f61757468322f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-expressive-authentication-oauth2?branch=master)

Zend-expressive-authentication-oauth2 is middleware for [Expressive](https://github.com/zendframework/zend-expressive)and [PSR-7](http://www.php-fig.org/psr/psr-7/) applications providing an OAuth2 server for authentication.

This library uses the [league/oauth2-server](https://oauth2.thephpleague.com/)package for implementing the OAuth2 server. It supports all the following grant types:

- client credentials;
- password;
- authorization code;
- implicit;
- refresh token;

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

[](#installation)

You can install the *zend-expressive-authentication-oauth2* library with composer:

```
$ composer require zendframework/zend-expressive-authentication-oauth2
```

Documentation
-------------

[](#documentation)

Browse the documentation online at

Support
-------

[](#support)

- [Issues](https://github.com/zendframework/zend-expressive-authentication-oauth2/issues/)
- [Chat](https://zendframework-slack.herokuapp.com/)
- [Forum](https://discourse.zendframework.com/)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~101 days

Total

21

Last Release

2327d ago

Major Versions

0.3.0 → 1.0.0alpha12018-02-07

0.3.1 → 1.0.0alpha42018-02-28

0.4.0 → 1.0.0alpha52018-05-07

0.4.3 → 1.0.02018-10-04

1.3.0 → 2.0.02019-12-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (86 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (49 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (47 commits)")[![wshafer](https://avatars.githubusercontent.com/u/1828455?v=4)](https://github.com/wshafer "wshafer (17 commits)")[![tux-rampage](https://avatars.githubusercontent.com/u/558326?v=4)](https://github.com/tux-rampage "tux-rampage (13 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (10 commits)")[![marcguyer](https://avatars.githubusercontent.com/u/35496?v=4)](https://github.com/marcguyer "marcguyer (10 commits)")[![thexpand](https://avatars.githubusercontent.com/u/14979167?v=4)](https://github.com/thexpand "thexpand (8 commits)")[![jguittard](https://avatars.githubusercontent.com/u/5320213?v=4)](https://github.com/jguittard "jguittard (8 commits)")[![froschdesign](https://avatars.githubusercontent.com/u/103362?v=4)](https://github.com/froschdesign "froschdesign (3 commits)")[![marc-mabe](https://avatars.githubusercontent.com/u/302689?v=4)](https://github.com/marc-mabe "marc-mabe (3 commits)")[![sheridans](https://avatars.githubusercontent.com/u/9597981?v=4)](https://github.com/sheridans "sheridans (3 commits)")[![sunspikes](https://avatars.githubusercontent.com/u/75611?v=4)](https://github.com/sunspikes "sunspikes (1 commits)")[![oqq](https://avatars.githubusercontent.com/u/7161145?v=4)](https://github.com/oqq "oqq (1 commits)")

---

Tags

httppsr-7middlewareAuthenticationoauth2ZendFrameworkzfexpressive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-expressive-authentication-oauth2/health.svg)

```
[![Health](https://phpackages.com/badges/zendframework-zend-expressive-authentication-oauth2/health.svg)](https://phpackages.com/packages/zendframework-zend-expressive-authentication-oauth2)
```

###  Alternatives

[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

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