PHPackages                             niltonduarte/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. [HTTP &amp; Networking](/categories/http)
4. /
5. niltonduarte/route

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

niltonduarte/route
==================

A lightweight, simple and easy request router for your application.

v1.0.2(3y ago)011BSD-3-ClausePHPPHP &gt;=7.4

Since Jul 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Nilton-hub/route)[ Packagist](https://packagist.org/packages/niltonduarte/route)[ RSS](/packages/niltonduarte-route/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Application Router for PHP
==========================

[](#application-router-for-php)

For more details, see the examples folder inside the library. It has no dependencies. Use this with any server, including PHP's built-in server. Inside the folder where you downloaded the component open the terminal and run the command:

```
php -S localhost:80 -t .

```

or

```
php -S localhost:80

```

If you have a problem, just change the 80 to another port number. For more details on PHP's built-in web server see

Its use is ridiculously easy!
-----------------------------

[](#its-use-is-ridiculously-easy)

I recommend that you create an index.php file in the root of the public folder that will be accessed by the server when it receives a request from some page of your application and call composer autoload to load Route like this:

```
