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

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

vitnasinec/uri
==============

v1.0.2(1y ago)0112MITPHPPHP ^7.2|^8.0

Since Jan 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vitnasinec/uri)[ Packagist](https://packagist.org/packages/vitnasinec/uri)[ Docs](https://github.com/vitnasinec/uri)[ RSS](/packages/vitnasinec-uri/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

URL query string manipulations helper
=====================================

[](#url-query-string-manipulations-helper)

Adds/removes/updates query string of current request uri, accepts Laravel's array "dot" notation

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

[](#installation)

You can install the package via composer:

```
composer require vitnasinec/uri
```

Usage
-----

[](#usage)

```
// https://domain.test/page?filter[foo]=bar&sort=-baz

uri()->addQuery('filter.other', 'next');
// https://domain.test/page?filter[foo]=bar&filter[other]=next&sort=-baz

uri('http://different.test/other?filter[other]=previous')->addQuery('filter.other', 'next');
// http://different.test/other?filter[other]=next

uri()->removeQuery('filter.foo')
// https://domain.test/page?sort=-baz

uri()->mergeQuery(['filter.foo' => 'changed', 'filter.other' => 'next']);
// https://domain.test/page?filter[foo]=changed&filter[other]=next&sort=-baz

uri()->mergeMissingQuery(['filter.foo' => 'skipped', 'filter.added' => true]);
// https://domain.test/page?filter[foo]=changed&filter[other]=next&sort=-baz
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~189 days

Total

3

Last Release

526d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/067e26f9d5db14dd0fb5adb0f26d105642db5d3d251b5c2cf5ca5c67a54877e5?d=identicon)[Vn](/maintainers/Vn)

---

Top Contributors

[![vitnasinec](https://avatars.githubusercontent.com/u/566074?v=4)](https://github.com/vitnasinec "vitnasinec (15 commits)")

---

Tags

urivitnasinec

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M147](/packages/laravel-mcp)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[api-platform/laravel

API Platform support for Laravel

58170.8k13](/packages/api-platform-laravel)[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M172](/packages/intervention-image-laravel)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

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