PHPackages                             felixdorn/laravel-url-resolver - 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. felixdorn/laravel-url-resolver

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

felixdorn/laravel-url-resolver
==============================

Resolve routes and urls with one function.

2.0.2(3y ago)034[2 PRs](https://github.com/felixdorn/laravel-url-resolver/pulls)1MITPHPPHP ^8.0|^8.1

Since Mar 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/felixdorn/laravel-url-resolver)[ Packagist](https://packagist.org/packages/felixdorn/laravel-url-resolver)[ RSS](/packages/felixdorn-laravel-url-resolver/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (10)Used By (1)

> Repository has been moved from [laravel-honda/url-resolver](https://github.com/laravel-honda/url-resolver)to [felixdorn/laravel-url-resolver](https://github.com/felixdorn/laravel-url-resolver).

Url Resolver for Laravel
========================

[](#url-resolver-for-laravel)

Resolve routes and urls with one function.

[![Tests](https://github.com/felixdorn/laravel-url-resolver/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/felixdorn/laravel-url-resolver/actions/workflows/tests.yml)[![Formats](https://github.com/felixdorn/laravel-url-resolver/actions/workflows/formats.yml/badge.svg?branch=main)](https://github.com/felixdorn/laravel-url-resolver/actions/workflows/formats.yml)[![Version](https://camo.githubusercontent.com/4a5395f78e11818f63cadac33240e008278231e51c4b4ce0f8ee0593197a0e51/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f6c61726176656c2d75726c2d7265736f6c7665722f76657273696f6e)](//packagist.org/packages/felixdorn/laravel-url-resolver)[![Total Downloads](https://camo.githubusercontent.com/f063527a8f15ce990a361c36b8f6bc79ec8bea71ad8421a9b1de376d5507d909/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f6c61726176656c2d75726c2d7265736f6c7665722f646f776e6c6f616473)](//packagist.org/packages/felixdorn/laravel-url-resolver)[![codecov](https://camo.githubusercontent.com/7a45baff1eab233e3ebb32bce3ca28a865faf7e8442631a2297d11b9eff8c81f/68747470733a2f2f636f6465636f762e696f2f67682f66656c6978646f726e2f6c61726176656c2d75726c2d7265736f6c7665722f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d476b36634f5878375235)](https://codecov.io/gh/felixdorn/laravel-url-resolver)

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

[](#installation)

> Supports **PHP 8.0** and **PHP 8.1**.

You can install the package via composer:

```
composer require felixdorn/laravel-url-resolver
```

Usages
------

[](#usages)

```
use Felix\UrlResolver\UrlResolver;

UrlResolver::guess('welcome', []);
```

- **The route exists:** `route('...', $context)`
- **The route does not exist:** `url(...')`
- **The "route" is an external URL:** returns it

Testing
-------

[](#testing)

```
composer test
```

**Url Resolver for Laravel** was created by [Félix Dorn](https://twitter.com/afelixdorn) under the [MIT License](LICENSE.md)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% 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 ~90 days

Recently: every ~125 days

Total

7

Last Release

1333d ago

Major Versions

0.2.0 → 1.0.02021-11-07

1.0.0 → 2.0.02022-09-18

PHP version history (4 changes)0.1.0PHP ^7.4

0.2.0PHP ^7.4 | ^8

1.0.0PHP ^8

2.0.0PHP ^8.0|^8.1

### Community

Maintainers

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

---

Top Contributors

[![felixdorn](https://avatars.githubusercontent.com/u/55788595?v=4)](https://github.com/felixdorn "felixdorn (29 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")

---

Tags

packageurllaravelresolverurl-resolver

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/felixdorn-laravel-url-resolver/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[cybercog/laravel-optimus

An Optimus bridge for Laravel. Id obfuscation based on Knuth's multiplicative hashing method.

192564.1k](/packages/cybercog-laravel-optimus)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[gallib/laravel-short-url

A Laravel package to shorten urls

16516.4k](/packages/gallib-laravel-short-url)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)

PHPackages © 2026

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