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

ActiveLibrary[Framework](/categories/framework)

josegarcia/router
=================

Simple router for PHP, that minics the behavior of the Express router

2.03.2(1mo ago)31081MITPHPPHP &gt;=7.4.0CI passing

Since Feb 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jgarc186/router)[ Packagist](https://packagist.org/packages/josegarcia/router)[ RSS](/packages/josegarcia-router/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (6)Versions (22)Used By (0)

Router
======

[](#router)

A lightweight routing tool for PHP, drawing inspiration from Express and Laravel.

Description
-----------

[](#description)

This router provides a straightforward way to define and manage routes in PHP. Inspired by frameworks like Express and Laravel, it lets you assign specific handlers to routes and then processes incoming requests by matching them to the appropriate handler.

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

[](#installation)

```
composer require josegarcia/router
```

Usage
-----

[](#usage)

```
