PHPackages                             soysaltan/larasplitter - 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. [API Development](/categories/api)
4. /
5. soysaltan/larasplitter

AbandonedArchivedLibrary[API Development](/categories/api)

soysaltan/larasplitter
======================

Decompose your Laravel api files

1.0.5(5y ago)6711MITPHPPHP &gt;=5.6.4

Since Oct 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/soysaltan/larasplitter)[ Packagist](https://packagist.org/packages/soysaltan/larasplitter)[ RSS](/packages/soysaltan-larasplitter/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Decompose your Laravel route files
==================================

[](#decompose-your-laravel-route-files)

[![Latest Stable Version](https://camo.githubusercontent.com/86da3f37381b01d19026e21cbfdac1138c2d283be6277c389245082df9e576f6/68747470733a2f2f706f7365722e707567782e6f72672f736f7973616c74616e2f6c61726173706c69747465722f76)](//packagist.org/packages/soysaltan/larasplitter) [![Total Downloads](https://camo.githubusercontent.com/0d40dd96a9bffd32706191a55d1e911ea8af0ac910fecc245507b292e092d8cb/68747470733a2f2f706f7365722e707567782e6f72672f736f7973616c74616e2f6c61726173706c69747465722f646f776e6c6f616473)](//packagist.org/packages/soysaltan/larasplitter) [![Latest Unstable Version](https://camo.githubusercontent.com/8c1994f272c9c5c338a6ddbd0bb8a6ecaec0238332ee355e7138f1856c5d01a9/68747470733a2f2f706f7365722e707567782e6f72672f736f7973616c74616e2f6c61726173706c69747465722f762f756e737461626c65)](//packagist.org/packages/soysaltan/larasplitter) [![License](https://camo.githubusercontent.com/35e2369a154a02faa824c8cd989c66093008ff4993058ab2c4dd514182ebe916/68747470733a2f2f706f7365722e707567782e6f72672f736f7973616c74616e2f6c61726173706c69747465722f6c6963656e7365)](//packagist.org/packages/soysaltan/larasplitter)

While working with Laravel, you may encounter a scenario in which route files need to be separated.In this case you will need to make some changes in the project. This process can often become a chore, I have often faced this problem so I developed a package to help you automate this kind of chore.

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

[](#getting-started)

### 1. Install

[](#1-install)

Run the following command:

```
composer require soysaltan/larasplitter
```

### 2. Register (for Laravel &lt; 5.5)

[](#2-register-for-laravel--55)

Register the service provider in `config/app.php`

```
 Soysaltan\LaraSplitter\Provider::class,
```

### 3. Publish

[](#3-publish)

Publish config file.

```
php artisan vendor:publish --tag=larasplitter
```

### 4. Configure

[](#4-configure)

You can change the settings of your app from `config/larasplitter.php` file

Usage
-----

[](#usage)

```
php artisan spl:it
```

After this command, you will be asked two questions.

- Please enter a api file name (the filename will be saved with '.api' suffix): **foo**
- Please enter an endpoint name: **foos**

Finally, you will get a message like

- You can find your '**SplitApiFooServiceProvider**' class at '**/path/to/app/Providers'**
- Your '**foo.api.php**' file has located at '**/path/to/routes**'

You can hit the endpoint you have created : **/api/foos**

Requirements
------------

[](#requirements)

- Laravel 5.3+
- PHP 5.6.4+

### How it works

[](#how-it-works)

**Soysaltan\\LaraSplitter\\Provider** registers the route file you want to separate under the **app/Providers** folder. This register dynamically does the following:

```
 foreach (glob(base_path('app/Providers/SplitApi*')) as $file) {
		$className = basename($file, '.php');
		$this->app->register("\App\Providers\\$className");
	}
```

Each separate route file is mapped to a provider and registered in the system in this way.

Changelog
---------

[](#changelog)

Please see [Releases](../../releases) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Soysal Tan](https://github.com/soysaltan)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2127d ago

### Community

Maintainers

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

---

Top Contributors

[![paramientos](https://avatars.githubusercontent.com/u/4548213?v=4)](https://github.com/paramientos "paramientos (18 commits)")

---

Tags

apilaravellaravel-apilaravel-routephproutesseperate-api-laravelsoysaltansplit-your-laravel-apiapirouteslaravel-routesplitternew laravel routesplit laravel api file

### Embed Badge

![Health badge](/badges/soysaltan-larasplitter/health.svg)

```
[![Health](https://phpackages.com/badges/soysaltan-larasplitter/health.svg)](https://phpackages.com/packages/soysaltan-larasplitter)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22880.1k](/packages/m165437-laravel-blueprint-docs)[infyomlabs/routes-explorer

Laravel Routes Explorer

3925.9k](/packages/infyomlabs-routes-explorer)

PHPackages © 2026

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