PHPackages                             tigress/router - 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. tigress/router

ActiveLibrary[Framework](/categories/framework)

tigress/router
==============

Tigress router library

2025.12.09.0(5mo ago)01331GPL-3.0-or-laterPHPPHP &gt;=8.5

Since Nov 28Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/RudyMas/tigress_router)[ Packagist](https://packagist.org/packages/tigress/router)[ RSS](/packages/tigress-router/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (1)

Tigress Router
==============

[](#tigress-router)

The Router module of the Tigress Framework

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

[](#installation)

You can create a new Tigress project by using composer.

```
composer create-project tigress/tigress

```

Documentation
-------------

[](#documentation)

The Router is automatically loaded by the Core module.

### Usage

[](#usage)

The Router is used to define routes for your application. You can define routes in the 'config/routes.json' file.

### Example

[](#example)

```
{
  "routes": [
    {
      "request": "GET",
      "path": "/",
      "controller": "HomeController",
      "method": "index"
    },
    {
      "request": "GET",
      "path": "/user/{id}",
      "controller": "UserController",
      "method": "show"
    },
    {
      "request": "POST",
      "path": "/user",
      "controller": "UserController",
      "method": "store"
    }
  ]
}
```

### Route Parameters

[](#route-parameters)

You can define route parameters by using curly braces `{}` in the path. The parameters will be passed to the controller method as an array of arguments.

### Example

[](#example-1)

```
{
  "routes": [
    {
      "request": "GET",
      "path": "/user/{id}",
      "controller": "UserController",
      "method": "show"
    }
  ]
}
```

In the above example, the `id` parameter will be passed to the `show` method of the `UserController` as an argument. In the controller you can access the parameter like this:

```
public function show($args) {
  // $args->id will contain the value of the 'id' parameter
}
```

### Route Request Methods

[](#route-request-methods)

You can define the request method for the route by using the `request` key in the route definition. The request method can be 'GET', 'POST', 'PUT', 'PATCH', 'DELETE' or 'OPTIONS'.

### Route Controller

[](#route-controller)

You can define the controller and method to be called for the route by using the `controller` and `method` keys in the route definition.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance76

Regular maintenance activity

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96% 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 ~188 days

Total

3

Last Release

152d ago

Major Versions

2024.11.28.0 → 2025.03.032025-03-03

PHP version history (2 changes)2024.11.28.0PHP &gt;=8.4

2025.12.09.0PHP &gt;=8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/32e6bb9d6dd13fe312acf0e50cf8a745d5a468682a7b7b00a4c6759ad44abeb9?d=identicon)[rudymas](/maintainers/rudymas)

---

Top Contributors

[![RudyMasGoNext](https://avatars.githubusercontent.com/u/144022376?v=4)](https://github.com/RudyMasGoNext "RudyMasGoNext (24 commits)")[![RudyMas](https://avatars.githubusercontent.com/u/17342220?v=4)](https://github.com/RudyMas "RudyMas (1 commits)")

### Embed Badge

![Health badge](/badges/tigress-router/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M191](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M256](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M592](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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