PHPackages                             amir-hossein5/laravel-routin - 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. amir-hossein5/laravel-routin

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

amir-hossein5/laravel-routin
============================

filters laravel application routes

v1.2.0(4y ago)07MITPHPPHP ^8.0

Since Nov 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/amirHossein5/laravel-routin)[ Packagist](https://packagist.org/packages/amir-hossein5/laravel-routin)[ RSS](/packages/amir-hossein5-laravel-routin/feed)WikiDiscussions 1.x Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

> ⚠️ This package just finds those routes, that have name.

This package provides searching between laravel application routes.
For example when user's going to create a menu item, have to link that to a page, but instead of writing manually you can show your intended routes to select:

```
Routin::routes()
  ->withoutParameter()
  ->method('get')
  ->getUri();
```

Output will be those routes **uri**, that haven't **any parameter** and verb of **GET**:

```
array:3 [▼
  0 => "/"
  1 => "user"
  2 => "user/create"
]
```

- **[Installation](#installation)**
- **[Filters](#filters)**
- **[Getters](#getters)**

Prerequisites
-------------

[](#prerequisites)

- Laravel `^8.0|^9.0`
- PHP 8

Installation
------------

[](#installation)

```
composer require amir-hossein5/laravel-routin
```

Usage
-----

[](#usage)

Filters
-------

[](#filters)

filterdescriptionuriStartsWith( string )where uri (/users/create) starts with something (here starts with **u** or **users**)uriEndsWith( string )where uri (/users/create) ends with something (here ends with **e** or **create**)nameStartsWith( string )where name (users.create) starts with something (here starts with **u** or **user**)nameEndsWith( string )where name (users.create) ends with something (here ends with **e** or **create**)withoutParameter()where route doesn't have any parametermethod( string )where route's verb is $mehod> Notice: There is no order for methods and but you have to use ::routes() at the begining.

Getters
-------

[](#getters)

After filtering routes you need to get them by these methods:

### Getting routes manually

[](#getting-routes-manually)

```
use AmirHossein5\Routin\Facades\Routin;

Routin::routes()
  ->withoutParameter()
  ->get(fn ($route) => [
    $route->uri => $route
  ])

// output

array:2 [▼
  "user/create" => Illuminate\Routing\Route {#1109 ▶}
  "book/{book}" => Illuminate\Routing\Route {#1108 ▶}
  ...
]
```

See available methods in

### get()

[](#get)

```
use AmirHossein5\Routin\Facades\Routin;

Routin::routes()
  ->withoutParameter()
  ->method('post')
  ->get()

// output

array:2 [▼
  "user.store" => Illuminate\Routing\Route {#1109 ▶}
  "book.store" => Illuminate\Routing\Route {#1108 ▶}
]
```

Returns **array** with **key of name** and **value of laravel's Illuminate\\Routing\\Route object**.

### getUri()

[](#geturi)

```
Routin::routes()
  ->withoutParameter()
  ->method('get')
  ->getUri()

// output

array:3 [▼
  0 => "/"
  1 => "user"
  2 => "user/create"
]
```

Returns **array** with **value of routes uri**.

### getParameters()

[](#getparameters)

```
Routin::routes()
  ->method('put')
  ->getParameters()

// output

array:2 [▼
  "user.update" => array:1 [▼
    0 => "user"
  ]
  "book.update" => array:1 [▼
    0 => "book"
  ]
]
```

Returns **array** with **key of name** and value, **array of parameters**.

### getName()

[](#getname)

```
Routin::routes()
  ->getName()

// output

array:7 [▼
  0 => "user.index"
  1 => "user.create"
  2 => "user.store"
  3 => "user.show"
  4 => "user.edit"
  5 => "user.update"
  6 => "user.destroy"
]
```

Returns **array** with **value of route's name**.

License
-------

[](#license)

[License](LICENSE)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.4% 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 ~76 days

Total

5

Last Release

1332d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8965321404f59b9bc2b2ec90f25cc2dd341030cb6863de0d4721a12b239ae079?d=identicon)[amirHossein5](/maintainers/amirHossein5)

---

Top Contributors

[![amirHossein5](https://avatars.githubusercontent.com/u/68776630?v=4)](https://github.com/amirHossein5 "amirHossein5 (37 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

laravellaravel-routesroutes

### Embed Badge

![Health badge](/badges/amir-hossein5-laravel-routin/health.svg)

```
[![Health](https://phpackages.com/badges/amir-hossein5-laravel-routin/health.svg)](https://phpackages.com/packages/amir-hossein5-laravel-routin)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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