PHPackages                             freefri/cake-rest-api-oauth - 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. freefri/cake-rest-api-oauth

ActiveCakephp-plugin[HTTP &amp; Networking](/categories/http)

freefri/cake-rest-api-oauth
===========================

Basic OAuth based on cake-rest-api

0.2.2(5mo ago)0395MITPHPPHP &gt;=8.2

Since Jul 17Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/freefri/cake-rest-api-oauth)[ Packagist](https://packagist.org/packages/freefri/cake-rest-api-oauth)[ Docs](https://github.com/freefri/cake-rest-api-oauth)[ RSS](/packages/freefri-cake-rest-api-oauth/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (10)Versions (16)Used By (0)

cake-rest-api-oauth
===================

[](#cake-rest-api-oauth)

Basic OAuth based on cake-rest-api

Authentication flow
-------------------

[](#authentication-flow)

### Authorization Code Flow with Proof Key for Code Exchange (PKCE)

[](#authorization-code-flow-with-proof-key-for-code-exchange-pkce)

Based on docs from [auth0](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce)and [oauth demo](https://www.oauth.com/playground/authorization-code-with-pkce.html)

 ```
sequenceDiagram
    title Authorization Code Flow with Proof Key for Code Exchange (PKCE)
    User->>App: Click login link
    App->>App: Generate cryptographically-random code_verifier and from this generates a code_challenge
    participant Oauth as Oauth server
    App->>Oauth: Authorization Code Request + code_challenge  to /authorize
    Oauth-->>User: Display to login prompt (returns encrypted login_challenge)
    User->>Oauth: Provide credentials (via POST form)
    Oauth->>Oauth: Optionally, store cookie  to keep session open
    Note right of Oauth: Authorization Server stores the code_challenge on password success
    Oauth-->>App: Redirect with one time use authorization code
    App->>Oauth: Authorization code + code_verifier to /oauth/token
    Oauth->>Oauth: validate code_challenge and code_verifier
    Oauth-->>App: ID token and access_token (optionally refresh_token)
    Note over App,Oauth: App can use credentials to access the API
```

      Loading (To see this diagram you need to install [Mermaid](https://plugins.jetbrains.com/plugin/20146-mermaid)):

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance70

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~38 days

Recently: every ~1 days

Total

15

Last Release

178d ago

PHP version history (3 changes)0.0.1PHP &gt;=7.4

0.1.0PHP &gt;=7.4 || &gt;=8.2

0.2.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2754631?v=4)[freefri](/maintainers/freefri)[@freefri](https://github.com/freefri)

---

Top Contributors

[![freefri](https://avatars.githubusercontent.com/u/2754631?v=4)](https://github.com/freefri "freefri (32 commits)")

---

Tags

apirestcakephpoauth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/freefri-cake-rest-api-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/freefri-cake-rest-api-oauth/health.svg)](https://phpackages.com/packages/freefri-cake-rest-api-oauth)
```

###  Alternatives

[cakedc/cakephp-api

Api plugin for CakePHP

61109.7k](/packages/cakedc-cakephp-api)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.6M18](/packages/xeroapi-xero-php-oauth2)[mixerapi/mixerapi

Streamline development of API-first applications in CakePHP

4443.0k](/packages/mixerapi-mixerapi)[sprintcube/cakephp-rest

Rest API plugin for CakePHP 3

256.7k](/packages/sprintcube-cakephp-rest)[andrej-griniuk/cakephp-fractal-transformer-view

CakePHP view builder utilizing Fractal library for entities transformation

1891.6k](/packages/andrej-griniuk-cakephp-fractal-transformer-view)[wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

156.1k](/packages/wearearchitect-sharepoint-oauth-app-client)

PHPackages © 2026

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