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

Abandoned → [innmind/url](/?search=innmind%2Furl)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

innmind/url-resolver
====================

Library to resolve relative urls to absolute ones

5.1.0(2y ago)224.8k↑2627.3%13MITPHPPHP ~8.2CI failing

Since Sep 21Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Innmind/url-resolver)[ Packagist](https://packagist.org/packages/innmind/url-resolver)[ Docs](http://github.com/Innmind/url-resolver)[ RSS](/packages/innmind-url-resolver/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (14)Used By (3)

UrlResolver
===========

[](#urlresolver)

[![Build Status](https://github.com/innmind/url-resolver/workflows/CI/badge.svg?branch=master)](https://github.com/innmind/url-resolver/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/91620f8b40c8e5c7693b8e610db4cf39cf9a509eb572e3f4576b12e1c4019679/68747470733a2f2f636f6465636f762e696f2f67682f696e6e6d696e642f75726c2d7265736f6c7665722f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/innmind/url-resolver)[![Type Coverage](https://camo.githubusercontent.com/5c24a46474107d5f84015ef39e82f6d0fc8bdd9413357dd4238328a36c13d5b3/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f75726c2d7265736f6c7665722f636f7665726167652e737667)](https://shepherd.dev/github/innmind/url-resolver)

Allow to build an absolute url from a source url and a destination.

Example:

```
use Innmind\UrlResolver\UrlResolver;
use Innmind\Url\Url;

$resolve = UrlResolver::of('http', 'https');

$url = $resolve(
    Url::of('http://example.com/foo/'),
    Url::of('./bar/baz?query=string#fragment'),
);
// $url resolves to http://example.com/foo/bar/baz?query=string#fragment
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance63

Regular maintenance activity

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 99.1% 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 ~265 days

Recently: every ~428 days

Total

12

Last Release

965d ago

Major Versions

1.0.2 → 2.0.02016-02-07

2.0.0 → 3.0.02017-02-12

3.2.0 → 4.0.02020-01-30

4.1.0 → 5.0.02022-04-24

PHP version history (7 changes)1.0.0PHP &gt;=5.5

2.0.0PHP ~7.0

3.2.0PHP ~7.2

4.0.0PHP ~7.4

4.1.0PHP ~7.4|~8.0

5.0.0PHP ~8.1

5.1.0PHP ~8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (112 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

urluriresolver

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[league/uri-components

URI components manipulation library

31932.3M66](/packages/league-uri-components)[sabre/uri

Functions for making sense out of URIs.

29335.2M40](/packages/sabre-uri)[cybercog/laravel-optimus

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

192564.1k](/packages/cybercog-laravel-optimus)[opis/uri

Build, parse and validate URIs and URI-templates

1620.8M6](/packages/opis-uri)[ml/iri

IRI handling for PHP

276.4M6](/packages/ml-iri)[rowbot/url

A WHATWG URL spec compliant URL parser for working with URLs and their query strings.

19648.2k4](/packages/rowbot-url)

PHPackages © 2026

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