PHPackages                             tihloh/prefab-routes - 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. tihloh/prefab-routes

ActiveLibrary

tihloh/prefab-routes
====================

Lightweight, framework-independent routing for Prefab PHP that scales from small sites to modular applications.

00PHP

Since Aug 24Pushed todayCompare

[ Source](https://github.com/tihloh/prefab-routes)[ Packagist](https://packagist.org/packages/tihloh/prefab-routes)[ RSS](/packages/tihloh-prefab-routes/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Prefab Routes
=============

[](#prefab-routes)

**Prefab Routes** is a lightweight, framework-independent PHP routing module designed around one rule:

> Start tiny. Add advanced routing only when the application needs it.

A two-page PHP site can use a few route definitions and `dispatch()`. A larger modular application can progressively add controllers, parameters, constraints, names, URL generation, groups, middleware, resource routes, metadata, route files, inspection and diagnostics without replacing the router or changing the basic API.

Prefab Routes is standalone. It does not require Prefab Auth, Permissions, Logs, Users, Database, Laravel, Symfony, or another framework.

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

[](#requirements)

- PHP 8.1 or newer
- Composer when installed as a package

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

[](#installation)

When the package is published:

```
composer require tihloh/prefab-routes
```

Then load Composer normally:

```
