PHPackages                             tandrezone/zroute - 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. tandrezone/zroute

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

tandrezone/zroute
=================

A simple, lightweight PHP routing system

v1.0.0(1mo ago)06↓100%[1 issues](https://github.com/tandrezone/zRoute/issues)[1 PRs](https://github.com/tandrezone/zRoute/pulls)MITPHPPHP &gt;=8.0

Since Apr 28Pushed 3w agoCompare

[ Source](https://github.com/tandrezone/zRoute)[ Packagist](https://packagist.org/packages/tandrezone/zroute)[ RSS](/packages/tandrezone-zroute/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

zRoute
======

[](#zroute)

A simple, lightweight PHP routing system available as a Composer package.

Features
--------

[](#features)

- **Static routes** – `/about`, `/contact`, `/api/v1/status`
- **Dynamic routes** – `/products/$product-slug`, `/users/$id`, `/users/$userId/posts/$postId`
- All common HTTP methods: `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, and `any()`
- Fluent (chainable) API
- Customisable 404 (Not Found) and 405 (Method Not Allowed) handlers
- Path normalisation: trailing slashes, query strings, and dot-segments (`.`, `..`) are handled automatically

---

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

[](#requirements)

- PHP 8.0 or higher

---

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

[](#installation)

```
composer require tandrezone/zroute
```

---

Quick Start
-----------

[](#quick-start)

```
