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

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

data-values/iri
===============

IRI value objects, parsers and formatters

0.1.1(11y ago)07.7k23GPL-2.0+PHPPHP &gt;=5.3.0

Since Nov 17Pushed 5y ago9 watchersCompare

[ Source](https://github.com/DataValues/Iri)[ Packagist](https://packagist.org/packages/data-values/iri)[ Docs](https://github.com/DataValues/Iri)[ RSS](/packages/data-values-iri/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (3)Used By (3)

DataValues Iri
==============

[](#datavalues-iri)

DataValues Iri is a small library that contains IRI value objects, parsers and formatters.

It is part of the [DataValues set of libraries](https://github.com/DataValues).

[![Code Coverage](https://camo.githubusercontent.com/5e3bcdc0f6f74f10f2219bad5ee31f335804549fbe96d1a6576b8e6708dc2b43/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4461746156616c7565732f4972692f6261646765732f636f7665726167652e706e673f733d31306565303564363062353234366366643564663433386236336334643564616534623463356137)](https://scrutinizer-ci.com/g/DataValues/Iri/)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/12b7aa573240134711d7454782e7c6d0d51a62aafc5f14a86a8a5023bdb9537b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4461746156616c7565732f4972692f6261646765732f7175616c6974792d73636f72652e706e673f733d39626466323162623135633364376239636564653938356664616366376533376235303765383939)](https://scrutinizer-ci.com/g/DataValues/Iri/)[![Dependency Status](https://camo.githubusercontent.com/20900060e7c8677fc9fdacb665ea31bdcde0fe842787c00fcec19d9a785fef4b/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f646174612d76616c7565733a6972692f62616467652e706e67)](https://www.versioneye.com/php/data-values:iri)

On [Packagist](https://packagist.org/packages/data-values/iri): [![Latest Stable Version](https://camo.githubusercontent.com/f37e1d0418b7e664968f5ee1e5569e216e895e2df90a48b3730fd983531d1133/68747470733a2f2f706f7365722e707567782e6f72672f646174612d76616c7565732f6972692f76657273696f6e2e706e67)](https://packagist.org/packages/data-values/iri)[![Download count](https://camo.githubusercontent.com/53b5288795d68f82cfdbd7f7edfd01d80eafd7fa256eab1056a0b9886015aff7/68747470733a2f2f706f7365722e707567782e6f72672f646174612d76616c7565732f6972692f642f746f74616c2e706e67)](https://packagist.org/packages/data-values/iri)

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

[](#installation)

The recommended way to use this library is via [Composer](http://getcomposer.org/).

### Composer

[](#composer)

To add this package as a local, per-project dependency to your project, simply add a dependency on `data-values/iri` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on version 1.0 of this package:

```
{
    "require": {
        "data-values/iri": "1.0.*"
    }
}

```

### Manual

[](#manual)

Get the code of this package, either via git, or some other means. Also get all dependencies. You can find a list of the dependencies in the "require" section of the composer.json file. Then take care of autoloading the classes defined in the src directory.

Tests
-----

[](#tests)

This library comes with a set up PHPUnit tests that cover all non-trivial code. You can run these tests using the PHPUnit configuration file found in the root directory. The tests can also be run via Github Actions.

Authors
-------

[](#authors)

DataValues Iri has been written by \[Jeroen De Dauw\] (), as [Wikimedia Germany](https://wikimedia.de) employee for the [Wikidata project](https://wikidata.org/).

Release notes
-------------

[](#release-notes)

### 0.1.1 (2014-10-16)

[](#011-2014-10-16)

- Installation together with DataValues 1.x is now supported.

### 0.1 (2013-11-17)

[](#01-2013-11-17)

Initial release with these features:

- IriValue
- IriFormatter

Links
-----

[](#links)

- [DataValues Iri on Packagist](https://packagist.org/packages/data-values/iri)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~332 days

Total

2

Last Release

4229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/451bd4039d530fed8f9c3da91bfa519233a397d2182cdfdcad700f6cfea19b7f?d=identicon)[Jeroen De Dauw](/maintainers/Jeroen%20De%20Dauw)

![](https://www.gravatar.com/avatar/0c1ddc1309ce2f268d42afc35c3065421f8a6d21e4ca25eb338db3a297cdef1b?d=identicon)[DataValues](/maintainers/DataValues)

---

Top Contributors

[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (16 commits)")[![itamargiv](https://avatars.githubusercontent.com/u/6132917?v=4)](https://github.com/itamargiv "itamargiv (6 commits)")[![addshore](https://avatars.githubusercontent.com/u/3308769?v=4)](https://github.com/addshore "addshore (6 commits)")[![thiemowmde](https://avatars.githubusercontent.com/u/6576639?v=4)](https://github.com/thiemowmde "thiemowmde (1 commits)")[![Ladsgroup](https://avatars.githubusercontent.com/u/5351225?v=4)](https://github.com/Ladsgroup "Ladsgroup (1 commits)")[![mariushoch](https://avatars.githubusercontent.com/u/2446964?v=4)](https://github.com/mariushoch "mariushoch (1 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (1 commits)")

---

Tags

urliriwikidatadatavaluesvalueparsersvalueformatters

### Embed Badge

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

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

###  Alternatives

[data-values/number

Numerical value objects, parsers and formatters

18303.0k14](/packages/data-values-number)[data-values/time

Time value objects, parsers and formatters

10318.6k14](/packages/data-values-time)[spatie/url

Parse, build and manipulate URL's

73914.3M97](/packages/spatie-url)[jbroadway/urlify

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

6737.4M62](/packages/jbroadway-urlify)[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)

PHPackages © 2026

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