PHPackages                             marco476/routing-manager - 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. marco476/routing-manager

ActiveLibrary[Framework](/categories/framework)

marco476/routing-manager
========================

PHP performance-oriented routing manager

2.0.0(8y ago)2471MITPHPPHP &gt;=5.6

Since Feb 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/marco476/routing-manager)[ Packagist](https://packagist.org/packages/marco476/routing-manager)[ RSS](/packages/marco476-routing-manager/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (16)Used By (1)

[![Build Status](https://camo.githubusercontent.com/c8aabc5415890f967a74c4bd186e2e0005cf69bab4da160d21835adeabd37742/68747470733a2f2f7472617669732d63692e6f72672f6d6172636f3437362f726f7574696e672d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/marco476/routing-manager)[![Packagist](https://camo.githubusercontent.com/566a928ade4cf083d6ccecb3c89a317724a250256d0ee73ac0a26666ce82e147/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6172636f3437362f726f7574696e672d6d616e616765722e737667)](https://packagist.org/packages/marco476/routing-manager)[![Code Climate](https://camo.githubusercontent.com/533aa7f6e59fa1b654734a09f9e2b55df93e1fbb9dc2cc8b832d9f2da7e28baa/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6172636f3437362f726f7574696e672d6d616e616765722f6261646765732f6770612e737667)](https://codeclimate.com/github/marco476/routing-manager)[![Issue Count](https://camo.githubusercontent.com/7a634aacf491f767c1a212faf901ee998e383dc49d30092ad29120c8e5d6df5f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6172636f3437362f726f7574696e672d6d616e616765722f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/marco476/routing-manager)[![PHP Version](https://camo.githubusercontent.com/03d4a63e22b4d0a0d86012343fcb372aa36efce708fd04061d0e720e652423be/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344352e362d626c75652e737667)](http://php.net/manual/en/migration56.new-features.php)[![Packagist](https://camo.githubusercontent.com/d24dba521156f66ebaaaadf55b0d425bf2c02a241e25b41ba624b4a1a77a1285/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6172636f3437362f726f7574696e672d6d616e616765722e737667)](https://packagist.org/packages/marco476/routing-manager)

PHP performance-oriented Routing manager
========================================

[](#php-performance-oriented-routing-manager)

This library is PHP **performance-oriented routing manager** working with routes setted by:

- PHP Array
- YAML file
- XML file

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

[](#installation)

You can install it with Composer:

```
composer require marco476/routing-manager

```

Usage
-----

[](#usage)

Use the *routing-manager* library is extreme simple. All routes setted **must** include an **expression** *key/tag* for matching with URI.

When you call **matchRoute** method, the library find a match between routes setted and URI present. It return the **route matched array** if math with URI is Ok or **false** if not.

### Array

[](#array)

See an example with **array**:

```
