PHPackages                             menumbing/oauth2-server - 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. menumbing/oauth2-server

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

menumbing/oauth2-server
=======================

OAuth2 component for Hyperf inspired from Laravel Passport

2206PHP

Since Jun 19Pushed 11mo ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Hyperf OAuth2 Server
====================

[](#hyperf-oauth2-server)

`menumbing/oauth2-server` is a standards compliant implementation of an [OAuth 2.0](https://tools.ietf.org/html/rfc6749)authorization server. This component is [Hyperf](https://www.hyperf.wiki/) component as wrapper of `league/oauth2-server`. You can easily configure an OAuth 2.0 server to protect your API with access tokens, or allow clients to request new access tokens and refresh them.

Out of the box it supports the following grants:

- Authorization code grant
- Client credentials grant
- Device authorization grant
- Implicit grant
- Refresh grant
- Resource owner password credentials grant

The following RFCs are implemented:

- [RFC6749 "OAuth 2.0"](https://tools.ietf.org/html/rfc6749)
- [RFC6750 "The OAuth 2.0 Authorization Framework: Bearer Token Usage"](https://tools.ietf.org/html/rfc6750)
- [RFC7519 "JSON Web Token (JWT)"](https://tools.ietf.org/html/rfc7519)
- [RFC7636 "Proof Key for Code Exchange by OAuth Public Clients"](https://tools.ietf.org/html/rfc7636)
- [RFC8628 "OAuth 2.0 Device Authorization Grant](https://tools.ietf.org/html/rfc8628)

Requirements
------------

[](#requirements)

- PHP&gt;=8.1
- swoole extension
- openssl extension
- json extension

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

[](#installation)

```
composer req menumbing/oauth2-server

php bin/hyperf.php install:oauth2

php bin/hyperf.php start

```

Generate Client
---------------

[](#generate-client)

```
php bin/hyperf.php gen:oauth2-client

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

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/c573df2af2e1cf9b81eda9b79fdfbed86db3631a2d121b7ad3c9a2994dc06ed7?d=identicon)[bl4ckbon3](/maintainers/bl4ckbon3)

### Embed Badge

![Health badge](/badges/menumbing-oauth2-server/health.svg)

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

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