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

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

mzb/php-router-matcher
======================

The router component allows you to define routes that correspond to controllers or managers that should receive the request. A router parses the URI to extract this information. The router has two modes: MVC, and match-only. The first mode is ideal for working on MVC applications.

1.0.1(4y ago)0101MITHTML

Since Jan 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bensaadmucret/mzb-php-router-matcher)[ Packagist](https://packagist.org/packages/mzb/php-router-matcher)[ RSS](/packages/mzb-php-router-matcher/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/55d3986abf69e9ce0280359b9ef9e94d2eb423fe7056b74622b2cc4940e1436e/68747470733a2f2f6170702e7472617669732d63692e636f6d2f62656e736161646d75637265742f6d7a622d7068702d726f757465722d6d6174636865722e7376673f6272616e63683d6d61696e)](https://app.travis-ci.com/bensaadmucret/mzb-php-router-matcher)[![Coverage Status](https://camo.githubusercontent.com/3f5c9ca56991960223c196bbe750dc3d143e2edcaf6fb4ad4e2e6fbfa51ceb3f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f62656e736161646d75637265742f6d7a622d7068702d726f757465722d6d6174636865722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/bensaadmucret/mzb-php-router-matcher?branch=main)[![License](https://camo.githubusercontent.com/d876f3df76051a26d659f0da04d461b0058b7d14b084813310c5039b45713b03/687474703a2f2f706f7365722e707567782e6f72672f6d7a622f7068702d726f757465722d6d6174636865722f6c6963656e7365)](https://packagist.org/packages/mzb/php-router-matcher)[![Codacy Badge](https://camo.githubusercontent.com/919557736d92633e6f0dddf2b365a1b06d9399845c5ce320f878be8f44c54f92/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3031643237383161666639393430396561396365393036643166616130363837)](https://www.codacy.com/gh/bensaadmucret/mzb-php-router-matcher/dashboard?utm_source=github.com&utm_medium=referral&utm_content=bensaadmucret/mzb-php-router-matcher&utm_campaign=Badge_Grade)

Requirements The following versions of PHP are supported by this version.

- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0

### Testing

[](#testing)

- vendor/bin/phpunit

### You need PHP &gt;= 7.2.0 to use mzb/php-router-matcher but the latest stable version of PHP is recommended.

[](#you-need-php--720-to-use-mzbphp-router-matcher-but-the-latest-stable-version-of-php-is-recommended)

Composer Route is available on Packagist and can be installed using Composer:

```
composer require mzb/php-router-matcher
```

```
