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

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

wok/uri
=======

WOK URI handler

v1.2.5(9y ago)01072MIT

Since Sep 9Compare

[ Source](https://github.com/web-operational-kit/uri)[ Packagist](https://packagist.org/packages/wok/uri)[ Docs](https://github.com/web-operational-kit/uri)[ RSS](/packages/wok-uri/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (11)Used By (2)

Uri
===

[](#uri)

This library is a URI manager interface.

[![SensioLabsInsight](https://camo.githubusercontent.com/a12189c1c812e078b23bfed19dd841ff9e83a25a9e566f3a38f992aeed631bd0/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36306562636537642d623562352d343062302d613539642d6637666535333261356639642f6269672e706e67)](https://insight.sensiolabs.com/projects/60ebce7d-b5b5-40b0-a59d-f7fe532a5f9d)

**Diclaimer :** This component is part of the [WOK](https://github.com/web-operational-kit/) (Web Operational Kit) framework. It however can be used as a standalone library.

Install
-------

[](#install)

It is recommanded to install that component as a dependency using [Composer](https://getcomposer.org/) :

```
composer require wok/uri

```

You're also free to get it with [git](https://git-scm.com/) or by [direct download](https://github.com/web-operational-kit/uri/archive/master.zip) while this package has no dependencies.

```
git clone https://github.com/web-operational-kit/uri.git

```

Usage
-----

[](#usage)

```
use \WOK\Uri\Uri

// First instanciate a URI object
$uri = Uri::createFromString('http://domain.tld/path/to/resource?param=abc');

// Then you can either retrieve informations ...
$uri->getScheme();

// ... or update them
```

Checkout the full [methods and components list](#methods-and-components) as API.

### Methods and components

[](#methods-and-components)

**Tip**:

- Methods prefixed with `get`X return the value or associated object
- Methods prefixed with `set`X override the current value or associated object
- Methods prefixed with `with`X clone the current Uri object with the new value.

#### String values

[](#string-values)

- `getScheme()`
- `setScheme($scheme)`
- `withScheme(scheme)`
- `getFragment()`
- `setFragment($fragment)`
- `withFragment(fragment)`

#### Host component

[](#host-component)

- `getHost()`
- `setHost($host)`
- `withHost($host)`

#### Path component

[](#path-component)

- `getPath()`
- `setPath($path)`
- `withPath($path)`

#### Query component

[](#query-component)

- `getQuery()`
- `setQuery($query)`
- `withQuery($query)`

#### User component

[](#user-component)

- `getUser()`
- `setUser($user)`
- `withUser($user)`

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

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

Every ~25 days

Total

8

Last Release

3402d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2820221?v=4)[Sébastien ALEXANDRE](/maintainers/graphidev)[@graphidev](https://github.com/graphidev)

---

Top Contributors

[![graphidev](https://avatars.githubusercontent.com/u/2820221?v=4)](https://github.com/graphidev "graphidev (32 commits)")

### Embed Badge

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

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

###  Alternatives

[usmanhalalit/strana

Pagination library for PHP, framework agnostic, with built-in adapters for Doctrine, Eloquent, Pixie and PHP Array.

957.4k4](/packages/usmanhalalit-strana)[silverware/calendar

SilverWare Calendar Module.

1644.2k1](/packages/silverware-calendar)[bitweb/zf2-cron-module

BitWeb ZF2 module for cron.

1242.5k](/packages/bitweb-zf2-cron-module)

PHPackages © 2026

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