PHPackages                             pfinal/routing - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. pfinal/routing

ActiveLibrary[HTTP &amp; Networking](/categories/http)

pfinal/routing
==============

The PFinal Routing package.

v1.8.1(4y ago)246152MITPHP ^5.4 || ^7.0

Since Sep 10Compare

[ Source](https://github.com/pfinal/routing)[ Packagist](https://packagist.org/packages/pfinal/routing)[ Docs](http://www.pfinal.cn)[ RSS](/packages/pfinal-routing/feed)WikiDiscussions Synced today

READMEChangelog (10)Dependencies (7)Versions (17)Used By (2)

[Routing](http://pfinal.cn)
===========================

[](#routing)

安装
--

[](#安装)

环境要求：PHP &gt;= 5.4、7+

- 使用 [composer](https://getcomposer.org/)

```
composer require pfinal/routing
```

使用示例

```
require __DIR__ . '/vendor/autoload.php';

use Symfony\Component\HttpFoundation\Request;
use PFinal\Routing\Router;

$router = new Router();

$router->get('/', function () {
    return 'index';
});

$router->any('/blog/:id', function ($id) {
    return $id;
});

$router->post('/blog/:name/update', function ($name) {
    return $name;
});

$request = Request::createFromGlobals();

$response = $router->dispatch($request);
$response->send();
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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 ~134 days

Recently: every ~380 days

Total

16

Last Release

1564d ago

PHP version history (3 changes)1.0PHP &gt;=5.3

v1.7.2PHP ^5.3 || ^7.0

v1.8.0PHP ^5.4 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17738136?v=4)[zouyiliang](/maintainers/pfinal)[@pfinal](https://github.com/pfinal)

### Embed Badge

![Health badge](/badges/pfinal-routing/health.svg)

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

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.8k](/packages/guzzlehttp-psr7)[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k853.6M8.3k](/packages/symfony-http-kernel)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k312.3M931](/packages/symfony-psr-http-message-bridge)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k50.1M314](/packages/api-platform-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)

PHPackages © 2026

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