PHPackages                             giuga/laravel-ordered-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. giuga/laravel-ordered-routes

ActiveLibrary

giuga/laravel-ordered-routes
============================

Set order for routes defined in web.php

v1.0.5(7y ago)1405MITPHPPHP ^7.1.3

Since Oct 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/gabrieliuga/laravel-ordered-routes)[ Packagist](https://packagist.org/packages/giuga/laravel-ordered-routes)[ RSS](/packages/giuga-laravel-ordered-routes/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

laravel-ordered-routes
======================

[](#laravel-ordered-routes)

Add order to routes

Install the package
-------------------

[](#install-the-package)

```
composer require giuga/laravel-ordered-routes
```

Change the default application loaded in bootstrap/app.php
----------------------------------------------------------

[](#change-the-default-application-loaded-in-bootstrapappphp)

Find

```
$app = new \Illuminate\Foundation\Application(
    realpath(__DIR__.'/../')
);
```

Replace with

```
$app = new \Giuga\Application(
    realpath(__DIR__.'/../')
);
```

Change the default Route alias in config/app.php
------------------------------------------------

[](#change-the-default-route-alias-in-configappphp)

Find

```
'aliases' => [
...
'Route' => Illuminate\Support\Facades\Route::class,
...
```

Replace with

```
'aliases' => [
...
'Route' => Giuga\Routing\Facades\OrderRoute::class,
...
```

routes/web.php
--------------

[](#routeswebphp)

By using this package you have the ability to define routes in what ever order you want.

In the example below the {slug?} would catch also the home route even if this was not our intention. By defining an order, if the requested url matches a predefined route like /home and /home does not have a higher order number than {slug?} home will be used.

```
Route:get('{slug?}', function($slug){ return $slug; } )->name('named.slug')->order(999);
Route:get('/home'), function(){ return 'This is my Home'; })->name('home');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Recently: every ~28 days

Total

6

Last Release

2637d ago

### Community

Maintainers

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

---

Top Contributors

[![gabrieliuga](https://avatars.githubusercontent.com/u/2194501?v=4)](https://github.com/gabrieliuga "gabrieliuga (7 commits)")

### Embed Badge

![Health badge](/badges/giuga-laravel-ordered-routes/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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