PHPackages                             danielburger1337/oauth2-pkce - 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. danielburger1337/oauth2-pkce

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

danielburger1337/oauth2-pkce
============================

Create/Verify OAuth2 PKCE code challenges.

v1.0.0(2y ago)3358↓50%MITPHPPHP ^8.2

Since Mar 5Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/danielburger1337/oauth2-pkce-php)[ Packagist](https://packagist.org/packages/danielburger1337/oauth2-pkce)[ Docs](https://github.com/danielburger1337/oauth2-pkce-php)[ RSS](/packages/danielburger1337-oauth2-pkce/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

[![PHPCSFixer](https://github.com/danielburger1337/oauth2-pkce-php/actions/workflows/phpcsfixer.yml/badge.svg)](https://github.com/danielburger1337/oauth2-pkce-php/actions/workflows/phpcsfixer.yml)[![PHPStan](https://github.com/danielburger1337/oauth2-pkce-php/actions/workflows/phpstan.yml/badge.svg)](https://github.com/danielburger1337/oauth2-pkce-php/actions/workflows/phpstan.yml)[![PHPUnit](https://github.com/danielburger1337/oauth2-pkce-php/actions/workflows/phpunit.yml/badge.svg)](https://github.com/danielburger1337/oauth2-pkce-php/actions/workflows/phpunit.yml)[![Packagist Version](https://camo.githubusercontent.com/c9d6e3a2dca474f4810088ec9f1bcab7531894f0a6a47fcd59ef605ddf38d810/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e69656c627572676572313333372f6f61757468322d706b63653f6c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b6167657325324664616e69656c627572676572313333372532466f61757468322d706b6365)](https://camo.githubusercontent.com/c9d6e3a2dca474f4810088ec9f1bcab7531894f0a6a47fcd59ef605ddf38d810/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e69656c627572676572313333372f6f61757468322d706b63653f6c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b6167657325324664616e69656c627572676572313333372532466f61757468322d706b6365)[![Packagist Downloads](https://camo.githubusercontent.com/9c0d604209bc78eb5795ba275d467bc93fd93466587485f45a87c58f14b0688b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e69656c627572676572313333372f6f61757468322d706b63653f6c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b6167657325324664616e69656c627572676572313333372532466f61757468322d706b6365)](https://camo.githubusercontent.com/9c0d604209bc78eb5795ba275d467bc93fd93466587485f45a87c58f14b0688b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e69656c627572676572313333372f6f61757468322d706b63653f6c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b6167657325324664616e69656c627572676572313333372532466f61757468322d706b6365)

danielburger1337/oauth2-pkce
============================

[](#danielburger1337oauth2-pkce)

A PHP library that helps you both create and verify [OAuth2 PKCE](https://datatracker.ietf.org/doc/html/rfc7636) challenges.

Install
-------

[](#install)

This library is [PSR-4](https://www.php-fig.org/psr/psr-4/) compatible and can be installed via PHP's dependency manager [Composer](https://getcomposer.org).

```
composer require danielburger1337/oauth2-pkce
```

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

[](#documentation)

You can find the documentation [here](docs/README.md).

Running Tests Locally
---------------------

[](#running-tests-locally)

This library is fully unit tested. It also uses strict static analysis to minimize the possibility of unexpected runtime errors.

```
composer install

vendor/bin/php-cs-fixer fix
vendor/bin/phpstan
vendor/bin/phpunit
```

License
-------

[](#license)

This software is available under the [MIT](LICENSE) license.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance52

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

797d ago

### Community

Maintainers

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

---

Top Contributors

[![danielburger1337](https://avatars.githubusercontent.com/u/48986191?v=4)](https://github.com/danielburger1337 "danielburger1337 (24 commits)")

---

Tags

composer-packageoauth2openidphpphp-librarypkceoauth2pkce

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/danielburger1337-oauth2-pkce/health.svg)

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

###  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.0M248](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.2k](/packages/league-oauth2-client)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

83416.7M61](/packages/knpuniversity-oauth2-client-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)

PHPackages © 2026

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