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

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

php-strict/simple-route
=======================

Simple request router.

v1.0.1(6y ago)07511GPL-2.0-or-laterPHPPHP ^7.1

Since May 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/php-strict/simple-route)[ Packagist](https://packagist.org/packages/php-strict/simple-route)[ Docs](https://github.com/php-strict/simple-route)[ RSS](/packages/php-strict-simple-route/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

Simple route
============

[](#simple-route)

[![Software License](https://camo.githubusercontent.com/e1514dd3f2095dbf68a0008ae62a631142953ad2e86aa94c504343f2c2c191da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)[![Build Status](https://camo.githubusercontent.com/68758e6d4c7ce028732466eb0cab819dd91fe83233d97c5c9da86e48b35f4510/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d7374726963742f73696d706c652d726f7574652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/php-strict/simple-route)[![codecov](https://camo.githubusercontent.com/4bf28684fbdfeb9d2beb44c42b6a7b67046e4e79772bb180294edc922d65c34b/68747470733a2f2f636f6465636f762e696f2f67682f7068702d7374726963742f73696d706c652d726f7574652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/php-strict/simple-route)[![Codacy Badge](https://camo.githubusercontent.com/b6c300903f97aa6c103a515cc941271a16ee25908a3a0e78dfd3fc89f292bba8/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3335623863656639316165303439643662393262663237306131313962383737)](https://www.codacy.com/app/php-strict/simple-route?utm_source=github.com&utm_medium=referral&utm_content=php-strict/simple-route&utm_campaign=Badge_Grade)

Simple request router. All routes is a key/entry pairs. Router looking for entry closest to key, and returns it with remainder of searching key as parameters array (splited by slash).

It can be used to delegate execution from core to standalone modules. Each module takes remainder of searching key as parameters array and use it by its own.

Storage example:

```
