Looking to hire Laravel developers? Try LaraJobs

laravel-url-resolver maintained by felixdorn

Description
Resolve routes and urls with one function.
Author
Last update
2024/07/10 11:47 (dev-dependabot/composer/symfony/var-dumper-tw-7.1.2)
License
Links
Downloads
34

Comments
comments powered by Disqus

Repository has been moved from laravel-honda/url-resolver to felixdorn/laravel-url-resolver.

Url Resolver for Laravel

Resolve routes and urls with one function.

Tests Formats Version Total Downloads codecov

Installation

Supports PHP 8.0 and PHP 8.1.

You can install the package via composer:

composer require felixdorn/laravel-url-resolver

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

composer test

Url Resolver for Laravel was created by Félix Dorn under the MIT License