PHPackages                             opis/uri - 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. opis/uri

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

opis/uri
========

Build, parse and validate URIs and URI-templates

1.1.0(4y ago)1920.8M—5.6%5[1 PRs](https://github.com/opis/uri/pulls)6Apache-2.0PHPPHP ^7.4 || ^8.0CI passing

Since Apr 13Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/opis/uri)[ Packagist](https://packagist.org/packages/opis/uri)[ Docs](https://opis.io)[ RSS](/packages/opis-uri/feed)WikiDiscussions master Synced 1mo ago

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

Opis URI
========

[](#opis-uri)

[![Tests](https://github.com/opis/uri/workflows/Tests/badge.svg)](https://github.com/opis/uri/actions)[![Packagist Version](https://camo.githubusercontent.com/8970e54e020e226dc8ffae8a058c243acb81f45941121bbcc29eaa8592f7ff8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f7069732f7572693f6c6162656c3d56657273696f6e)](https://packagist.org/packages/opis/uri)[![Packagist Downloads](https://camo.githubusercontent.com/00beeb8d7f38ccbae2523afb5d0619dc11f85cf519cc3a53a93c65c9182095b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f7069732f7572693f6c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/opis/uri)[![Packagist License](https://camo.githubusercontent.com/6296a6be61f3d54991cf62091a31a328fc19825158404c523481a3e2ac92d746/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f7069732f7572693f636f6c6f723d7465616c266c6162656c3d4c6963656e7365)](https://packagist.org/packages/opis/uri)

**Opis URI** library allows you to build, parse and validate URIs and URI-templates.

License
-------

[](#license)

**Opis URI** is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0 "Apache License").

Requirements
------------

[](#requirements)

- PHP ^7.4 || ^8.0

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

[](#installation)

**Opis URI** is available on [Packagist](https://packagist.org/packages/opis/database "Packagist") and it can be installed from a command line interface by using [Composer](https://getcomposer.org "Composer").

```
composer require opis/uri
```

Or you could directly reference it into your `composer.json` file as a dependency

```
{
    "require": {
        "opis/uri": "^1.1"
    }
}
```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance47

Moderate activity, may be stable

Popularity58

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~38 days

Total

2

Last Release

1822d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47afaf3c711dd321c8d09bae2afed928971ec9e9a7593c925749696f04d2fddd?d=identicon)[msarca](/maintainers/msarca)

![](https://www.gravatar.com/avatar/7c720b40eb280d9fd33cc35d74c34b3763c2777bd2502d094625faa367f0dca4?d=identicon)[sorinsarca](/maintainers/sorinsarca)

---

Top Contributors

[![sorinsarca](https://avatars.githubusercontent.com/u/3427195?v=4)](https://github.com/sorinsarca "sorinsarca (12 commits)")[![villfa](https://avatars.githubusercontent.com/u/2891564?v=4)](https://github.com/villfa "villfa (1 commits)")

---

Tags

opisphpuriuri-templatesurluriparse\_urluri-templatepunycodeuri componentsvalidate uri

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/opis-uri/health.svg)

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

###  Alternatives

[league/uri

URI manipulation library

1.1k206.4M277](/packages/league-uri)[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)[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)
