PHPackages                             franzose/gimme-url - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. franzose/gimme-url

ActiveLibrary[HTTP &amp; Networking](/categories/http)

franzose/gimme-url
==================

URL generator for the PHP League Route.

v1.0(6y ago)8131MITPHP

Since Aug 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/franzose/gimme-url)[ Packagist](https://packagist.org/packages/franzose/gimme-url)[ Docs](https://github.com/franzose/gimme-url)[ RSS](/packages/franzose-gimme-url/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Gimme URL
=========

[](#gimme-url)

Gimme URL is a missing URL generator for the [League Route](https://github.com/thephpleague/route) library. It's capable to generate relative and absolute paths to named routes.

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

[](#installation)

Use Composer to install Gimme URL:

```
composer install franzose/gimme-url
```

Setup and usage
---------------

[](#setup-and-usage)

URL generator requires you to provide `Router` and `RequestContext` instances. The latter gathers information from a `Psr\Http\Message\ServerRequestInterface` instance and is used to build absolute paths to named routes.

```
