PHPackages                             masticore/laravel-url-matcher-command - 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. [CLI &amp; Console](/categories/cli)
4. /
5. masticore/laravel-url-matcher-command

ActiveLibrary[CLI &amp; Console](/categories/cli)

masticore/laravel-url-matcher-command
=====================================

A command to get information about the route matched against an arbitrary url string

0.1.1(5y ago)021[2 PRs](https://github.com/masticore252/laravel-url-matcher-command/pulls)BSD-3-ClausePHPPHP &gt;=7.3

Since Jun 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/masticore252/laravel-url-matcher-command)[ Packagist](https://packagist.org/packages/masticore/laravel-url-matcher-command)[ RSS](/packages/masticore-laravel-url-matcher-command/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Laravel URL matcher command
===========================

[](#laravel-url-matcher-command)

Motivation
----------

[](#motivation)

This command was created to fill the need of a way to find out which route definition will match any given url and method, this is most useful in big apps with a lot of routes where debugging this can be cumbersome.

It was inspired by symfony's `bin/console router:match` command.

Install
-------

[](#install)

Require this package using composer, it is recommended to install it as a development dependency.

```
composer require masticore/laravel-url-matcher-command --dev
```

Laravel's auto discovery will automatically register the command into artisan console

Usage
-----

[](#usage)

Given a URL and an http method, the command will search all the registered routes for a match and show all relevant information (uri, name, handler, middlweare and others)

```
~$ php artisan route:match api/product/3/ get
+---------------------+---------------------------------------------+
| Property            | Value                                       |
+---------------------+---------------------------------------------+
| Uri                 | api/product/{product}                       |
| Prefix              | api                                         |
| Methods             | GET, HEAD                                   |
| Controller          | App\Http\Controllers\ProductController@show |
| Middleware          | api                                         |
| Namespace           | App\Http\Controllers                        |
| Parameter Names     | product                                     |
| Parameters          | 123                                         |
| Original Parameters |                                             |
| Binding Fields      |                                             |
| Is Fallback         | false                                       |
| Where               |                                             |
+---------------------+---------------------------------------------+
```

TODO
----

[](#todo)

- Unit tests
- Handle more use cases like route names, groups, subdomains, bindings
- support laravel versions older than 7.X
- support php versions other than 7.3 &amp; 7.4

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

2148d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.0

0.1.1PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c90590f7dbd111fc6352724d21cd8d12e247e5c7bc5decb8c17588250169951?d=identicon)[masticore252](/maintainers/masticore252)

---

Top Contributors

[![masticore252](https://avatars.githubusercontent.com/u/18010476?v=4)](https://github.com/masticore252 "masticore252 (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

consolelaraveldebugrouterMatch

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/masticore-laravel-url-matcher-command/health.svg)

```
[![Health](https://phpackages.com/badges/masticore-laravel-url-matcher-command/health.svg)](https://phpackages.com/packages/masticore-laravel-url-matcher-command)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

71510.9M66](/packages/laravel-mcp)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)

PHPackages © 2026

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