PHPackages                             cyanobacteria/laravel-sub-routes - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cyanobacteria/laravel-sub-routes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cyanobacteria/laravel-sub-routes
================================

a plugin to split Route files

2.1.0(7y ago)034MITPHPPHP &gt;=7.1.0

Since May 6Pushed 7y agoCompare

[ Source](https://github.com/Cyanobacteria/laravel-sub-route)[ Packagist](https://packagist.org/packages/cyanobacteria/laravel-sub-routes)[ Docs](https://github.com/cyanobacteria/laravel-sub-routes)[ RSS](/packages/cyanobacteria-laravel-sub-routes/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (7)Used By (0)

LaravelSubRoute
===============

[](#laravelsubroute)

1. a simple route spliter by folders
2. set perfix default by fileName
3. can set middlewares or not (need to create a file.php under config folder)
4. only for laravel
5. need atleast laravel 5.5 or up
6. project create on laravel 5.7

Getting Started
---------------

[](#getting-started)

1. download and require yourself (git clone or just download)

```
git clone https://github.com/Cyanobacteria/laravel-sub-route.git

```

2. use composer

```
 composer require cyanobacteria/laravel-sub-routes

```

### Prerequisites

[](#prerequisites)

laravel and atleast version 5.5

### Installing

[](#installing)

1. do Getting Started and success
2. use on laravelProjectRoot/App/ServiceProviders/RouteServiceProvider.php

```
//in RouteServiceProvider.php

 public function map()
    {
        $this->mapApiRoutes(); //mapWebRoutes(); //'yourConfigFileName']);
        $subRoute->mapSubRoutes(['subRouteFolderName'=>'yourSubRouteFolderName']);

        /*
        projectRootPath/config/yourConfigFileName.php
        projectRootPath/routes/yourSubRouteFolderName/
        */

        // we will add
    }

```

3. php artisan route:clear

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~0 days

Total

6

Last Release

2567d ago

Major Versions

1.0.2 → 2.0.02019-05-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/eadeda108e5226be5d9d70832f804a4a68cee9e4eead73c55bd53a6a6be3a333?d=identicon)[Cyanobacteria](/maintainers/Cyanobacteria)

---

Top Contributors

[![Cyanobacteria](https://avatars.githubusercontent.com/u/24975415?v=4)](https://github.com/Cyanobacteria "Cyanobacteria (13 commits)")

---

Tags

LaravelSubRoutes

### Embed Badge

![Health badge](/badges/cyanobacteria-laravel-sub-routes/health.svg)

```
[![Health](https://phpackages.com/badges/cyanobacteria-laravel-sub-routes/health.svg)](https://phpackages.com/packages/cyanobacteria-laravel-sub-routes)
```

###  Alternatives

[devless/php-sdk

Official Devless SDK

145.9k](/packages/devless-php-sdk)

PHPackages © 2026

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