PHPackages                             cortex/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. [Database &amp; ORM](/categories/database)
4. /
5. cortex/oauth

AbandonedArchivedCortex-module[Database &amp; ORM](/categories/database)

cortex/oauth
============

Cortex OAuth is a frontend layer for the polymorphic Laravel package, for tag management. You can tag any eloquent model with ease, and utilize the awesomeness of Sluggable, and Translatable models out of the box.

v4.2.3(2y ago)21.1k11MITPHPPHP ^8.1.0

Since Dec 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rinvex/cortex-oauth-classic)[ Packagist](https://packagist.org/packages/cortex/oauth)[ Docs](https://rinvex.com)[ RSS](/packages/cortex-oauth/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (30)Versions (44)Used By (1)

Cortex OAuth
============

[](#cortex-oauth)

**Cortex OAuth** is a frontend layer for the OAuth server Laravel package, for API management.

[![Packagist](https://camo.githubusercontent.com/debf2405518cf55e02dc86050eb633367314fb9e93072e636193bc6ac9df25e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f727465782f6f617574682e7376673f6c6162656c3d5061636b6167697374267374796c653d666c61742d737175617265)](https://packagist.org/packages/cortex/oauth)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2ec34b135057c8738a345ef4c982b3a3c81c50a148341e7e26149a08d12cbbee/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72696e7665782f636f727465782d6f617574682e7376673f6c6162656c3d5363727574696e697a6572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rinvex/cortex-oauth/)[![Travis](https://camo.githubusercontent.com/e8aad3fe268299089ecef72983d846494d2e90ad88ec7160d817d26957e4ee2a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72696e7665782f636f727465782d6f617574682e7376673f6c6162656c3d5472617669734349267374796c653d666c61742d737175617265)](https://travis-ci.org/rinvex/cortex-oauth)[![StyleCI](https://camo.githubusercontent.com/3ec5dbea568eebc5dd1956172790ed07812e4daba42eb83e469a2041cb83db25/68747470733a2f2f7374796c6563692e696f2f7265706f732f39333632313939302f736869656c64)](https://styleci.io/repos/93621990)[![License](https://camo.githubusercontent.com/3cc30515e0eaf295ec7510c27cbef81be51c9a82f25538295cece1a6015a49b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f727465782f6f617574682e7376673f6c6162656c3d4c6963656e7365267374796c653d666c61742d737175617265)](https://github.com/rinvex/cortex-oauth/blob/develop/LICENSE)

Installation and Usage
----------------------

[](#installation-and-usage)

This is a **[Rinvex Cortex](https://github.com/rinvex/cortex)** module, that's still not yet documented, but you can use it on your own responsibility.

To be documented soon..!

### Example Usage

[](#example-usage)

```
Route::middleware(['web'])->get('adminarea/oauth/redirect', function (\Illuminate\Http\Request $request) {
    $request->session()->put('state', $state = \Str::random(40));

    $query = http_build_query([
        'client_id' => '51',
        'redirect_uri' => 'http://cortex.rinvex.test/adminarea/oauth/callback',
        'response_type' => 'code',
        'scope' => 'place-orders check-status',
        'state' => $state,
    ]);

    return redirect('http://cortex.rinvex.test/adminarea/oauth/authorize?'.$query);
});

Route::middleware(['web'])->get('adminarea/oauth/callback', function (\Illuminate\Http\Request $request) {
    $state = $request->session()->pull('state');

    throw_unless(
        strlen($state) > 0 && $state === $request->state,
        InvalidArgumentException::class
    );

    //dd($request->code);
    // For easy testing, we can temporary change `Route::post('token')` to `Route::get('token')`
    //return redirect('http://cortex.rinvex.test/adminarea/oauth/token?'.http_build_query([
    //        'grant_type' => 'authorization_code',
    //        'client_id' => '51',
    //        'client_secret' => 'bLGQa2fTqzVSonJvyT5CzHDD1JNEUevUm2esqVIy',
    //        'redirect_uri' => 'http://cortex.rinvex.test/adminarea/oauth/callback',
    //        'code' => $request->code,
    //    ]));

    $http = new GuzzleHttp\Client;

    $response = $http->post('http://cortex.rinvex.test/oauth/token', [
        'form_params' => [
            'grant_type' => 'authorization_code',
            'client_id' => '48',
            'client_secret' => 'bLGQa2fTqzVSonJvyT5CzHDD1JNEUevUm2esqVIy',
            'redirect_uri' => 'http://cortex.rinvex.test/callback',
            'code' => $request->code,
        ],
    ]);

    return json_decode((string) $response->getBody(), true);
});
```

Changelog
---------

[](#changelog)

Refer to the [Changelog](CHANGELOG.md) for a full history of the project.

Support
-------

[](#support)

The following support channels are available at your fingertips:

- [Chat on Slack](https://bit.ly/rinvex-slack)
- [Help on Email](mailto:help@rinvex.com)
- [Follow on Twitter](https://twitter.com/rinvex)

Contributing &amp; Protocols
----------------------------

[](#contributing--protocols)

Thank you for considering contributing to this project! The contribution guide can be found in [CONTRIBUTING.md](CONTRIBUTING.md).

Bug reports, feature requests, and pull requests are very welcome.

- [Versioning](CONTRIBUTING.md#versioning)
- [Pull Requests](CONTRIBUTING.md#pull-requests)
- [Coding Standards](CONTRIBUTING.md#coding-standards)
- [Feature Requests](CONTRIBUTING.md#feature-requests)
- [Git Flow](CONTRIBUTING.md#git-flow)

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this project, please send an e-mail to [security@rinvex.com](security@rinvex.com). All security vulnerabilities will be promptly addressed.

About Rinvex
------------

[](#about-rinvex)

Rinvex is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Alexandria, Egypt since June 2016. We believe that our drive The Value, The Reach, and The Impact is what differentiates us and unleash the endless possibilities of our philosophy through the power of software. We like to call it Innovation At The Speed Of Life. That’s how we do our share of advancing humanity.

License
-------

[](#license)

This software is released under [The MIT License (MIT)](LICENSE).

(c) 2016-2022 Rinvex LLC, Some rights reserved.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 99.2% 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 ~23 days

Total

42

Last Release

1005d ago

Major Versions

v1.0.1 → v2.0.02020-12-21

v2.0.17 → v3.0.02021-08-18

v3.2.9 → v4.0.02023-01-08

PHP version history (4 changes)v1.0.0PHP ^7.4.0

v2.0.1PHP ^7.4.0 || ^8.0.0

v3.1.0PHP ^8.0.0

v4.0.0PHP ^8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e54af04bcacb96e00894621335f88df7ed9895b6cc245deffdc9830a21cfe29?d=identicon)[Omranic](/maintainers/Omranic)

---

Top Contributors

[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (249 commits)")[![mohamed-hendawy](https://avatars.githubusercontent.com/u/16992890?v=4)](https://github.com/mohamed-hendawy "mohamed-hendawy (1 commits)")[![Rattone](https://avatars.githubusercontent.com/u/7362607?v=4)](https://github.com/Rattone "Rattone (1 commits)")

---

Tags

apilaravelmodeleloquentoauthrinvexcortex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cortex-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/cortex-oauth/health.svg)](https://phpackages.com/packages/cortex-oauth)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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