PHPackages                             ml/iri - 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. ml/iri

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

ml/iri
======

IRI handling for PHP

1.1.4(12y ago)276.4M—7%2[2 issues](https://github.com/lanthaler/IRI/issues)6MITPHPPHP &gt;=5.3.0

Since Sep 7Pushed 7y ago3 watchersCompare

[ Source](https://github.com/lanthaler/IRI)[ Packagist](https://packagist.org/packages/ml/iri)[ Docs](http://www.markus-lanthaler.com)[ RSS](/packages/ml-iri/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (6)

IRI
===

[](#iri)

This is a simple PHP class to ease IRI handling. Currently it just supports parsing of IRIs and relative IRI resolution. In the future I will extend it to support validation and normalization and perhaps also support for IRI templates.

With more than 700 tests, this class is extensively unit tested: [![Build Status](https://camo.githubusercontent.com/df0f19ba437d58c0968cf86277d3542e0b639f349b1d6a6927fa1180bb705cbb/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c616e7468616c65722f4952492e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/lanthaler/IRI)[![Code Coverage](https://camo.githubusercontent.com/4c905d90084e9210dd2ac62fe64db47e768dd6c3b99475d9b33a054bb33d1219/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c616e7468616c65722f4952492f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lanthaler/IRI/?branch=master)

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

[](#installation)

The easiest way to use IRI is to integrate it as a dependency in your project's [composer.json](http://getcomposer.org/doc/00-intro.md) file:

```
{
    "require": {
        "ml/iri": "1.*"
    }
}
```

Installing is then a matter of running composer

```
php composer.phar install

```

... and including Composer's autoloader to your project

```
require('vendor/autoload.php');
```

Of course you can also just download an [archive](https://github.com/lanthaler/IRI/downloads)from Github.

Credits
-------

[](#credits)

Most test cases come either directly from the [URI specification](http://tools.ietf.org/html/rfc3986), from [Graham Klyne's](http://www.ninebynine.org/Software/HaskellUtils/Network/URITestDescriptions.html), or [Tim Berners-Lee's](http://dig.csail.mit.edu/2005/ajar/ajaw/test/uri-test-doc.html) test suite.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity54

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Recently: every ~93 days

Total

6

Last Release

4500d ago

### Community

Maintainers

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

---

Top Contributors

[![lanthaler](https://avatars.githubusercontent.com/u/456407?v=4)](https://github.com/lanthaler "lanthaler (32 commits)")[![jneubert](https://avatars.githubusercontent.com/u/2128921?v=4)](https://github.com/jneubert "jneubert (1 commits)")[![rp-eric](https://avatars.githubusercontent.com/u/9381672?v=4)](https://github.com/rp-eric "rp-eric (1 commits)")[![whikloj](https://avatars.githubusercontent.com/u/2857697?v=4)](https://github.com/whikloj "whikloj (1 commits)")

---

Tags

urluriURNiri

### Embed Badge

![Health badge](/badges/ml-iri/health.svg)

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

###  Alternatives

[league/uri-components

URI components manipulation library

31932.3M67](/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

1920.8M6](/packages/opis-uri)[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)
