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

ActiveLibrary

webchemistry/router
===================

Router

v2.1(7y ago)41.7k1GPL-3.0PHPPHP &gt;=7.1

Since Feb 4Pushed 7y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

WebChemistry/router
===================

[](#webchemistryrouter)

Overview
--------

[](#overview)

- [Installation](README.md#Installation)
- [Configuration](README.md#Configuration)
- [Main router](README.md#Main-router)
- [Use autoregistration in own extension](README.md#Usage-autoregistration-in-own-extension)

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

[](#installation)

Install via composer.

```
composer require webchemistry/router
```

neon:

```
extensions:
    routers: WebChemistry\Routing\DI\RouterExtension
```

Configuration
-------------

[](#configuration)

```
routers:
    modules:
        - Front
        - Admin
    routers:
        - App\MainRouter
        - YourRouter
        - HisRouter
```

Main router
-----------

[](#main-router)

```
