PHPackages                             mrgswift/oauth2-base-library - 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. mrgswift/oauth2-base-library

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

mrgswift/oauth2-base-library
============================

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API (modified).

4.2.4(2y ago)0511MITPHP ^7.3.0|^8.2

Since Sep 21Compare

[ Source](https://github.com/mrgswift/oauth2-base-library)[ Packagist](https://packagist.org/packages/mrgswift/oauth2-base-library)[ Docs](http://oauth2.thephpleague.com/)[ RSS](/packages/mrgswift-oauth2-base-library/feed)WikiDiscussions Synced 2mo ago

READMEChangelogDependencies (5)Versions (9)Used By (1)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/mrgswift/oauth2-base-library).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity79

Established project with proven stability

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

Recently: every ~308 days

Total

8

Last Release

909d ago

PHP version history (3 changes)4.1.7PHP &gt;=5.4.0

4.2.0PHP ^7.3.0

4.2.3PHP ^7.3.0|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2319364?v=4)[Matthew Guillot](/maintainers/mrgswift)[@mrgswift](https://github.com/mrgswift)

---

Tags

apiauthAuthenticationserveroauthoauth2authorizationoauth 2.0secureresourceprotectauthorisationoauth 2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrgswift-oauth2-base-library/health.svg)

```
[![Health](https://phpackages.com/badges/mrgswift-oauth2-base-library/health.svg)](https://phpackages.com/packages/mrgswift-oauth2-base-library)
```

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M247](/packages/league-oauth2-server)[chervand/yii2-oauth2-server

OAuth 2.0 server for Yii 2.0 with MAC tokens support.

1524.2k1](/packages/chervand-yii2-oauth2-server)[ezralazuardy/heimdall

Painless OAuth 2.0 Server for CodeIgniter 4

454.2k](/packages/ezralazuardy-heimdall)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M67](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)

PHPackages © 2026

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