PHPackages                             sleeping-owl/route-priority - 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. sleeping-owl/route-priority

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

sleeping-owl/route-priority
===========================

Package to add priority to Laravel routes

1.1.0(11y ago)52515[1 issues](https://github.com/sleeping-owl/route-priority/issues)MITPHPPHP &gt;=5.4.0

Since Feb 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/sleeping-owl/route-priority)[ Packagist](https://packagist.org/packages/sleeping-owl/route-priority)[ RSS](/packages/sleeping-owl-route-priority/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Package to add priority to Laravel routes
-----------------------------------------

[](#package-to-add-priority-to-laravel-routes)

[![Latest Stable Version](https://camo.githubusercontent.com/a4524cbf285faed6a9a5748dabff3df65a61be2003ffd8ed1cd7421099df7344/68747470733a2f2f706f7365722e707567782e6f72672f736c656570696e672d6f776c2f726f7574652d7072696f726974792f762f737461626c652e737667)](https://packagist.org/packages/sleeping-owl/route-priority)[![License](https://camo.githubusercontent.com/7752ea0e1dec15e6f8272a36f7c05a4a72846e991c17fb5cedea8a60ade427eb/68747470733a2f2f706f7365722e707567782e6f72672f736c656570696e672d6f776c2f726f7574652d7072696f726974792f6c6963656e73652e737667)](https://packagist.org/packages/sleeping-owl/route-priority)

### Installation

[](#installation)

Add `sleeping-owl/route-priority` to `composer.json`.

```
"sleeping-owl/route-priority": "1.*"

```

Run `composer update` to pull down the latest version of the package. Now open up `app/config/app.php` and add the service provider to your `providers` array.

```
'providers' => array(
    'SleepingOwl\RoutePriority\RoutePriorityServiceProvider'
)

```

That's it. You now have some enhanced functionality available to your routes.

### Usage

[](#usage)

Now you can change your routes priority:

```
Route::get('my-route', ['uses' => 'MyController@myAction'])->setPriority(100);
```

`Priority` is integer value.

### Default Priority

[](#default-priority)

Default priority is `50 - already registered routes count`. So if you want higher priority - use values from 50 and above, lower priority - 10 and below.

### Example

[](#example)

```
Route::get('/user/{wildcard}', …);
Route::get('/user/settings', …);
```

This code will register two routes. With default Laravel behaviour second route will not work. Just add priority to the first route to fix the error:

```
Route::get('/user/{wildcard}', …)->setPriority(0);
Route::get('/user/settings', …);
```

Second route now has higher priority and will work.

Support Library
---------------

[](#support-library)

You can donate in BTC: 13k36pym383rEmsBSLyWfT3TxCQMN2Lekd

Copyright and License
---------------------

[](#copyright-and-license)

Package was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

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

Total

2

Last Release

4166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da62224c5896d50a9def476b8bb1f404457e03540718205587bf666bf4ff94dc?d=identicon)[sleeping-owl](/maintainers/sleeping-owl)

---

Top Contributors

[![sleeping-owl](https://avatars.githubusercontent.com/u/9197310?v=4)](https://github.com/sleeping-owl "sleeping-owl (3 commits)")

---

Tags

laravelrouteorderpriority

### Embed Badge

![Health badge](/badges/sleeping-owl-route-priority/health.svg)

```
[![Health](https://phpackages.com/badges/sleeping-owl-route-priority/health.svg)](https://phpackages.com/packages/sleeping-owl-route-priority)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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