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 1mo ago

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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

1893d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a5cbab9c81eddb0421b5986460e0b40aa5b5e7a12dff7845fe5ba76f5f22c71?d=identicon)[newtovaux](/maintainers/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

[coffeecode/router

A classic CoffeeCode Router is easy, fast and extremely uncomplicated. Create and manage your routes in minutes!

181111.1k5](/packages/coffeecode-router)[contributte/api-router

RESTful Router for your Apis in Nette Framework - created either directly or via attributes

20802.8k3](/packages/contributte-api-router)[lucatacconi/crunz-ui

User interface for lavary/crunz. Integrate Crunz library and funtions: Tabular, monthly or weekly interface to view the scheduled and executed tasks. Quick display of the execution result of the tasks that have been executed (Indicator icons easily show the result). Upload, download, edit or delete tasks. Forced run of the task, even outside the scheduled time with eventual display of the log once the execution is completed. It can be used with integrated Crunz or with a version of Crunz already installed on the system

161.5k](/packages/lucatacconi-crunz-ui)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)

PHPackages © 2026

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