PHPackages                             hnhdigital-os/laravel-multisite-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. [Framework](/categories/framework)
4. /
5. hnhdigital-os/laravel-multisite-router

ActiveLibrary[Framework](/categories/framework)

hnhdigital-os/laravel-multisite-router
======================================

Provides routing for multi-site applications

1.0.7(8y ago)365[1 PRs](https://github.com/hnhdigital-os/laravel-multisite-router/pulls)MITPHPPHP &gt;=7.0

Since Dec 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hnhdigital-os/laravel-multisite-router)[ Packagist](https://packagist.org/packages/hnhdigital-os/laravel-multisite-router)[ RSS](/packages/hnhdigital-os-laravel-multisite-router/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (5)Versions (10)Used By (0)

```
___  ___      _ _   _     _ _      ______            _
|  \/  |     | | | (_)   (_) |     | ___ \          | |
| .  . |_   _| | |_ _ ___ _| |_ ___| |_/ /___  _   _| |_ ___ _ __
| |\/| | | | | | __| / __| | __/ _ \    // _ \| | | | __/ _ \ '__|
| |  | | |_| | | |_| \__ \ | ||  __/ |\ \ (_) | |_| | ||  __/ |
\_|  |_/\__,_|_|\__|_|___/_|\__\___\_| \_\___/ \__,_|\__\___|_|

```

Implements routing configuration via a file and folder based route structure, domain structure including a dev name (eg staging), and the ability to apply middleware using the route file name.

[![Latest Stable Version](https://camo.githubusercontent.com/9bf710415c54e6dae090b929f4d765bc11c2edd80c5b72698b8745093c022d4d/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d756c7469736974652d726f757465722f762f737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-multisite-router) [![Total Downloads](https://camo.githubusercontent.com/7113d887620a69b81a9e85cefe8236fe2b7f1adeee37da9956b8c4ea34f6793b/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d756c7469736974652d726f757465722f646f776e6c6f6164732e737667)](https://packagist.org/packages/hnhdigital-os/laravel-multisite-router) [![Latest Unstable Version](https://camo.githubusercontent.com/cf945d7722279ce782d0c1bd9d92f4ff6bee381a368f61c979abbf1fd19ca50f/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d756c7469736974652d726f757465722f762f756e737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-multisite-router) [![Built for Laravel](https://camo.githubusercontent.com/ddd4a07bb769306a9338cffde2032c289e4d43d43ac346122709465a47cdff3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c745f666f722d4c61726176656c2d677265656e2e737667)](https://laravel.com/) [![License](https://camo.githubusercontent.com/6de11a263eb287a8c5b993dc2c8aa1f875b001dff30f77532555c60752080e2c/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d756c7469736974652d726f757465722f6c6963656e73652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-multisite-router)

[![Build Status](https://camo.githubusercontent.com/b2d285e3c7bd74814276eb3059eb45b019a0d4c3d488d8b1fd1e7cf4d9dea867/68747470733a2f2f7472617669732d63692e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d756c7469736974652d726f757465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hnhdigital-os/laravel-multisite-router) [![StyleCI](https://camo.githubusercontent.com/1aa0f7ebd500e82bf537519725f1f5d292f2e0e44a1e3c6847409b5da716b642/68747470733a2f2f7374796c6563692e696f2f7265706f732f36303133373231392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/60137219) [![Test Coverage](https://camo.githubusercontent.com/a1348bd85ec38003b6bcfe126f196aac3da962d82010da40265c4cf143fda3d4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d6d756c7469736974652d726f757465722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-multisite-router/coverage) [![Issue Count](https://camo.githubusercontent.com/4e017da004f4c7c30aa2b065b0a14193393fd6a361f18f2b7bb4e303ba2444fc/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d6d756c7469736974652d726f757465722f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-multisite-router) [![Code Climate](https://camo.githubusercontent.com/d921605a91c0f385e9460f287c463c2bee1535a9a2d646f1aa0aa75e2c2551c3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d6d756c7469736974652d726f757465722f6261646765732f6770612e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-multisite-router)

This package has been developed by H&amp;H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).

Documentation
-------------

[](#documentation)

- [Installation](#install)
- [Configuration](#configuration)
- [Usage](#usage)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Install
-------

[](#install)

Via composer:

`$ composer require hnhdigital-os/laravel-multisite-router ~1.0`

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

[](#configuration)

The service provider will autoload from Laravel 5.5.

To enable the service provider in versions prior to Laravel 5.4, edit the config/app.php:

Enable the service provider by editing config/app.php:

```
    'providers' => [
        ...
        HnhDigital\MultisiteRouter\ServiceProvider::class,
        ...
    ];
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/hnhdigital-os/laravel-multisite-router/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Rocco Howard](https://github.com/RoccoHoward)
- [All Contributors](https://github.com/hnhdigital-os/laravel-multisite-router/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/laravel-multisite-router/blob/master/LICENSE) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Recently: every ~20 days

Total

8

Last Release

2974d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5270e3a3d1add4e39f12dfde3ce549999a26f759d7128056083ab07f475259f2?d=identicon)[bluora](/maintainers/bluora)

---

Top Contributors

[![RoccoHoward](https://avatars.githubusercontent.com/u/227896?v=4)](https://github.com/RoccoHoward "RoccoHoward (48 commits)")

---

Tags

developmentlaravelmiddlewaremulti-domainroutingstaginglaravelrouter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hnhdigital-os-laravel-multisite-router/health.svg)

```
[![Health](https://phpackages.com/badges/hnhdigital-os-laravel-multisite-router/health.svg)](https://phpackages.com/packages/hnhdigital-os-laravel-multisite-router)
```

###  Alternatives

[pecee/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

696214.6k17](/packages/pecee-simple-router)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[rahulalam31/laravel-abuse-ip

Block ip address of all spammer's around the world.

27431.5k](/packages/rahulalam31-laravel-abuse-ip)[gevman/yii2-router

Elegant Route definitions for Yii2

504.9k](/packages/gevman-yii2-router)[developermarius/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

112.4k](/packages/developermarius-simple-router)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
