PHPackages                             innmind/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. innmind/url

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

innmind/url
===========

Library to abstract url handling

5.3.0(3w ago)0170.4k↓24.5%20MITPHPPHP ~8.5CI passing

Since Apr 17Pushed 3w ago1 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (36)Used By (20)

Url
===

[](#url)

[![Build Status](https://github.com/innmind/url/workflows/CI/badge.svg?branch=master)](https://github.com/innmind/url/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/e93f619ab390cd8232667a4d09459034fac608fb3d155b28e3f2728b93bfecea/68747470733a2f2f636f6465636f762e696f2f67682f696e6e6d696e642f75726c2f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/innmind/url)[![Type Coverage](https://camo.githubusercontent.com/f223f662fce1820d546bad6be0f4f6cb6fc3cf030f8f30db53ab00ff034e5fd1/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f75726c2f636f7665726167652e737667)](https://shepherd.dev/github/innmind/url)

Url abstraction library

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

[](#installation)

```
composer require innmind/url
```

Usage
-----

[](#usage)

```
use Innmind\Url\Url;

$url = Url::of('http://example.com:8080/some/dir/?limit=10');

$url->scheme(); // Scheme('http')
$url->authority()->userInformation()->user(); // User::none()
$url->authority()->userInformation()->password(); // Password::none()
$url->authority()->host(); // Host('example.com')
$url->authority()->port(); // Port(8080)
$url->path(); // Path('/some/dir/')
$url->query(); // Query('limit=10')
$url->fragment() // Fragment::none()
```

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance94

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity92

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% 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 ~118 days

Recently: every ~29 days

Total

32

Last Release

26d ago

Major Versions

1.0.4 → 2.0.02017-02-12

2.1.0 → 3.0.02019-12-12

3.7.0 → 4.0.02022-01-15

4.4.0 → 5.0.02026-01-18

PHP version history (7 changes)1.0.0PHP ~7.0

3.0.0PHP ~7.4

3.6.0PHP ~7.4|~8.0

4.0.0PHP ~8.0

4.2.0PHP ~8.2

5.0.0PHP ~8.4

5.1.0PHP ~8.5

### 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 (226 commits)")

---

Tags

url

### Embed Badge

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

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

###  Alternatives

[spatie/url

Parse, build and manipulate URL's

73915.2M114](/packages/spatie-url)[league/uri-components

URI components manipulation library

31937.4M87](/packages/league-uri-components)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6947.8M75](/packages/jbroadway-urlify)[sabre/uri

Functions for making sense out of URIs.

29436.8M44](/packages/sabre-uri)[spomky-labs/base64url

Base 64 URL Safe Encoding/Decoding PHP Library

15441.7M56](/packages/spomky-labs-base64url)[misd/linkify

Converts URLs and email addresses in text into HTML links

1163.1M11](/packages/misd-linkify)

PHPackages © 2026

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