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

21.4kPHP

Since Jun 19Pushed 1y 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 2d 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

21

—

LowBetter than 18% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity15

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

[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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