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

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

peterpostmann/uri
=================

URI manipulation Library

1.0.0(8y ago)030MITPHP

Since Nov 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/peterpostmann/php-uri)[ Packagist](https://packagist.org/packages/peterpostmann/uri)[ RSS](/packages/peterpostmann-uri/feed)WikiDiscussions master Synced 3d ago

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

uri
===

[](#uri)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0735c3e246030ecf7f88a58a2e46209d7dee52e70523209e11f691c493334c68/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7065746572706f73746d616e6e2f7068702d7572692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/peterpostmann/php-uri)

URI manipulation Library for URIs ([RFC3986](https://tools.ietf.org/html/rfc3986/) URL, URN, Windows path, relative path or file)

Install
-------

[](#install)

### Via Composer

[](#via-composer)

```
composer require peterpostmann/uri
```

If you dont want to use composer use the files as described in the sub-projects and include them into your project.

- [php-parse\_uri](https://github.com/peterpostmann/php-parse_uri)
- [php-resolve\_uri](https://github.com/peterpostmann/resolve_uri)
- [php-fileuri](https://github.com/peterpostmann/php-fileuri)

Usage
-----

[](#usage)

```
use peterpostmann\uri;

// parse_uri
array uri\parse_uri ( string uri [, int $component = -2 [, bool $convertUrlToUrn = null ]] )

// resolve_uri
string uri\resolve_uri ( string basePath, string newPath )
string uri\build_uri ( array components )
string uri\convert_url2urn ( string uri, bool convertUrlToUrn = null )

// fileuri
string uri\fileuri ( string path [, string basePath] )
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3100d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9362588b9edca85b56850256b890ab5e0f94670fa50e460a9547192785eb880b?d=identicon)[peterpostmann](/maintainers/peterpostmann)

---

Top Contributors

[![peterpostmann](https://avatars.githubusercontent.com/u/9541377?v=4)](https://github.com/peterpostmann "peterpostmann (1 commits)")

### Embed Badge

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

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

###  Alternatives

[braincrafted/background-process

Start processes in the background that continue running when the PHP process exists.

2976.1k1](/packages/braincrafted-background-process)[ammont/finglify

Translates farsi/persian to finglish/pinglish.

385.3k](/packages/ammont-finglify)

PHPackages © 2026

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