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

ActiveLibrary

adrienlucbert/php-router
========================

Minimal router framework for PHP, inspired by ExpressJS.

v1.2(5y ago)031MITPHPPHP &gt;=5.3.0

Since Aug 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/adrienlucbert/php-router)[ Packagist](https://packagist.org/packages/adrienlucbert/php-router)[ Docs](https://github.com/adrienlucbert/php-router)[ RSS](/packages/adrienlucbert-php-router/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

PHP Router
==========

[](#php-router)

This project is a minimal router framework for PHP, inspired by [ExpressJS](https://expressjs.com/).

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

[](#installation)

Use composer to manage and dependencies and download PHP Router.

```
composer require adrienlucbert/php-router

```

Example
-------

[](#example)

> ℹ️ find more examples under `/examples` directory

> ⚠️ You may also use with a `.htaccess` file redirecting all requests to a single file. This file will be responsible for describing routes: we call it `index.php` for the purpose of this example, but you may call it as you wish, just make sure the `.htaccess` file redirects to it.

```
