PHPackages                             john-jun/route - 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. [Framework](/categories/framework)
4. /
5. john-jun/route

ActiveLibrary[Framework](/categories/framework)

john-jun/route
==============

A Simple restful style request routing

1.0.0(5y ago)03MITPHPPHP ^7.1CI failing

Since Jun 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/john-jun/route)[ Packagist](https://packagist.org/packages/john-jun/route)[ RSS](/packages/john-jun-route/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Route
=====

[](#route)

A simple restful style request route

Install
-------

[](#install)

To install with composer

```
composer require john-jun/route
```

Test
----

[](#test)

```
composer test
```

Usage
-----

[](#usage)

```
$route = new Air\Routing\Route();

//add route
$route->get('/get', '{className}@{method}');
$route->cli('/cli', '{className}@{method}');
$route->put('/put', '{className}@{method}');
$route->head('/head', '{className}@{method}');
$route->post('/post', '{className}@{method}');
$route->patch('/patch', '{className}@{method}');
$route->delete('/delete', '{className}@{method}');
$route->options('/options', '{className}@{method}');

//add route group
$route->group('prefix', static function(Air\Routing\Route $route) {
    $route->get('/get', '{className}@{method}');
    $route->cli('/cli', '{className}@{method}');
    $route->put('/put', '{className}@{method}');
    $route->head('/head', '{className}@{method}');
    $route->post('/post', '{className}@{method}');
    $route->patch('/patch', '{className}@{method}');
    $route->delete('/delete', '{className}@{method}');
    $route->options('/options', '{className}@{method}');
});

print_r($route->dispatch('/get'));
print_r($route->dispatch('/prefix/get'));
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

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

Unknown

Total

1

Last Release

2177d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b65af36c8e169e61b0d27ac07a278d01586cc01f007d0924a2d75a5d429671b?d=identicon)[John-Jun](/maintainers/John-Jun)

---

Top Contributors

[![john-jun](https://avatars.githubusercontent.com/u/10989387?v=4)](https://github.com/john-jun "john-jun (6 commits)")

---

Tags

routingrouteair

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/john-jun-route/health.svg)

```
[![Health](https://phpackages.com/badges/john-jun-route/health.svg)](https://phpackages.com/packages/john-jun-route)
```

###  Alternatives

[pecee/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

696214.6k17](/packages/pecee-simple-router)[izniburak/router

simple router class for php

23522.6k7](/packages/izniburak-router)[ecoal95/php-router

Minimal routing library

271.0k1](/packages/ecoal95-php-router)[developermarius/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

112.4k](/packages/developermarius-simple-router)

PHPackages © 2026

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