PHPackages                             themsaid/laravel-routes-publisher - 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. themsaid/laravel-routes-publisher

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

themsaid/laravel-routes-publisher
=================================

A command to replace deprecated Route::controller with explicit routes.

v1.0.1(10y ago)5624.7k↑2150%10[7 issues](https://github.com/themsaid/laravel-routes-publisher/issues)[1 PRs](https://github.com/themsaid/laravel-routes-publisher/pulls)MITPHPPHP &gt;=5.5.9

Since Mar 23Pushed 8y ago4 watchersCompare

[ Source](https://github.com/themsaid/laravel-routes-publisher)[ Packagist](https://packagist.org/packages/themsaid/laravel-routes-publisher)[ Docs](https://github.com/themsaid/laravel-routes-publisher)[ RSS](/packages/themsaid-laravel-routes-publisher/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Routes Publisher
========================

[](#laravel-routes-publisher)

A command to replace deprecated `Route::controller()` and `Route::controllers()` with explicit routes.

[![what it does](https://camo.githubusercontent.com/dfa455913f2cfd5e604afa0c17d8df97b6ff007a5801e2a9261b0a68822b8cc9/687474703a2f2f7331372e706f7374696d672e6f72672f78357138766672667a2f53637265656e5f53686f745f323031365f30335f32335f61745f31325f33365f33345f504d2e706e67)](https://camo.githubusercontent.com/dfa455913f2cfd5e604afa0c17d8df97b6ff007a5801e2a9261b0a68822b8cc9/687474703a2f2f7331372e706f7374696d672e6f72672f78357138766672667a2f53637265656e5f53686f745f323031365f30335f32335f61745f31325f33365f33345f504d2e706e67)

In laravel 5.3 implicit controller routes will be removed from the framework, the functionality will likely be extracted into a separate package, however if you'd like to make the move and start using explicit routes this package will help you.

Installation
============

[](#installation)

#### Step 1:

[](#step-1)

```
composer require themsaid/laravel-routes-publisher

```

#### Step 2:

[](#step-2)

Include the following command in your `$commands` attribute of `app/Console/Kernel.php`:

```
\Themsaid\RoutesPublisher\RoutesPublisherCommand::class

```

Usage
=====

[](#usage)

Run the following command:

```
php artisan themsaid:publishRoutes

```

After the command is done, two new files will be generated in your `app/Http` directory:

```
routes.php.generated
routes.php.backup

```

Replace the content of your `routes.php` file with that of `routes.php.generated`, knowing that if anything went wrong a backup of your original `routes.php`'s content will be available in `routes.php.backup`.

#### This package assumes the following:

[](#this-package-assumes-the-following)

- Your `routes.php` doesn't contain any PHP syntax errors.
- Your `routes.php` file is located in `app\Http\routes.php` with the exact name.
- Your `routes.php` files doesn't include any other file using `include` or `require`.
- Your Application namespace is correctly registered in the psr-4 section of `composer.json`.

Problems?
=========

[](#problems)

I tried hard to cover different syntax and file formatting in this package, however if you found any problems while using the package please [open a new issue](https://github.com/themsaid/laravel-routes-publisher/issues/new).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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

2

Last Release

3702d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d96f0f919e9a1fd887da3f75818b1aad4ae2e2b82a1040641c4d1b4d621b712?d=identicon)[themsaid](/maintainers/themsaid)

---

Top Contributors

[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (13 commits)")[![insign](https://avatars.githubusercontent.com/u/1113045?v=4)](https://github.com/insign "insign (1 commits)")[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (1 commits)")

---

Tags

laravelroutes

### Embed Badge

![Health badge](/badges/themsaid-laravel-routes-publisher/health.svg)

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

###  Alternatives

[lord/laroute

Access Laravels URL/Route helper functions, from JavaScript.

8022.0M8](/packages/lord-laroute)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[bluedragon/laravel-routes

Publish Laravel routes to JavaScript

1288.0k](/packages/bluedragon-laravel-routes)

PHPackages © 2026

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