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

ActiveLibrary[Framework](/categories/framework)

comphp/router
=============

Route definition, matching, and dispatch support for PHP applications.

0.3(3w ago)033MITPHPPHP ^8.5

Since May 17Pushed 3w agoCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (3)

CommonPHP Router
================

[](#commonphp-router)

CommonPHP Router provides route definition and matching support for CommonPHP applications. It maps HTTP requests to actions, surfaces, or handlers using clear route definitions and CommonPHP conventions.

The package keeps routing explicit while remaining separate from request/response mechanics and application rendering.

Requirements
------------

[](#requirements)

- PHP `^8.5`
- `comphp/runtime:^0.3`

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

[](#installation)

Once this package is available through your Composer repositories, install it with:

```
composer require comphp/router
```

Usage
-----

[](#usage)

```
