PHPackages                             kyrill/php-route - 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. kyrill/php-route

ActiveLibrary

kyrill/php-route
================

A router package in development

V1.0.2(9mo ago)065MITPHPPHP &gt;=8.2

Since Nov 3Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/kyrill71/php-route)[ Packagist](https://packagist.org/packages/kyrill/php-route)[ RSS](/packages/kyrill-php-route/feed)WikiDiscussions main Synced 1mo ago

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

php-route
=========

[](#php-route)

The **PHP-route** is a lightweight PHP library that simplifies routing in web applications. It allows you to define routes and associate them with controllers, functions, or anonymous functions for handling HTTP requests.

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

[](#installation)

You can easily install the PHP Routing System using [Composer](https://getcomposer.org/):

```
   composer require "kyrill/php-route"
```

Usage
-----

[](#usage)

### Basic setup

[](#basic-setup)

In your index.php file, the following code is required for the package to work:

```
