PHPackages                             newtovaux/gjrouter - 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. newtovaux/gjrouter

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

newtovaux/gjrouter
==================

A simple and lightweight PHP router, with JWT support.

v1.0.14(5y ago)133MITPHPPHP ^7.4|^8.0

Since Mar 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/newtovaux/gjrouter)[ Packagist](https://packagist.org/packages/newtovaux/gjrouter)[ Docs](https://github.com/newtovaux/gjrouter)[ RSS](/packages/newtovaux-gjrouter/feed)WikiDiscussions main Synced today

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

GJRouter
========

[](#gjrouter)

[![Total Downloads](https://camo.githubusercontent.com/21a412b892ac8c6722c53419d345a7ea90d699e0db878c3a0bb8924af1a0218d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6577746f766175782f676a726f757465722e737667)](https://packagist.org/packages/newtovaux/gjrouter)[![Latest Stable Version](https://camo.githubusercontent.com/c33ca4d59c7bc38121a0dafcbeea9c354d4b8abf525b1f669958d064b91e4484/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6577746f766175782f676a726f757465722e737667)](https://packagist.org/packages/newtovaux/gjrouter)[![Continuous Integration](https://github.com/newtovaux/gjrouter/workflows/Continuous%20Integration/badge.svg)](https://github.com/newtovaux/gjrouter/workflows/Continuous%20Integration/badge.svg)

A simple PHP Router incorporating JWT authenticator.

Packagist
---------

[](#packagist)

GJRouter is available at [Packagist](https://packagist.org/packages/newtovaux/gjrouter).

Installation
------------

[](#installation)

Install the latest version with [Composer](https://getcomposer.org/):

```
composer require newtovaux/gjrouter
```

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

```
composer require --dev newtovaux/gjrouter
```

Basic Usage
-----------

[](#basic-usage)

See the [examples/index.php](examples/index.php) file for a full example.

About
-----

[](#about)

### Source

[](#source)

Source is available on GitHub:

### Requirements

[](#requirements)

- GJRouter `^1.0` is tested with PHP 7.4 or above, but *may* work with earlier versions.

### License

[](#license)

GJRouter is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

Development
-----------

[](#development)

Create autoload:

```
composer dump-autoload -o
```

Static Analysis:

```
./vendor/bin/psalm --show-info=true
```

Run tests:

```
./vendor/bin/phpunit tests
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

1944d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/640187?v=4)[New To Vaux](/maintainers/newtovaux)[@newtovaux](https://github.com/newtovaux)

---

Top Contributors

[![newtovaux](https://avatars.githubusercontent.com/u/640187?v=4)](https://github.com/newtovaux "newtovaux (42 commits)")

---

Tags

jwtpackagistphpphp-routerrouterjwtroutesrouterroute

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/newtovaux-gjrouter/health.svg)

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

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k294.2M217](/packages/google-auth)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k13.0M217](/packages/simplesamlphp-simplesamlphp)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30418.0M43](/packages/simplesamlphp-saml2)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

12310.5M134](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)

PHPackages © 2026

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