PHPackages                             global-source/javascript\_uri\_query - 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. global-source/javascript\_uri\_query

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

global-source/javascript\_uri\_query
====================================

Core Javascript Library for URI CURD.

1.0(9y ago)115MITJavaScript

Since Jan 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/global-source/javascript_uri_query)[ Packagist](https://packagist.org/packages/global-source/javascript_uri_query)[ RSS](/packages/global-source-javascript-uri-query/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Javascript URI Query
====================

[](#javascript-uri-query)

Core Javascript Library for Powerful URL level Operations ADD|UPDATE|DELETE and much more...

[![Packagist](https://camo.githubusercontent.com/8143bf25c422a7c9d4c25ec0eaf0613ffd3968a6da8785d631a60421570ef942/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f762e322e302d4275696c642d677265656e2e737667)](https://github.com/global-source/javascript_uri_query/releases/tag/v.2)[![Packagist](https://camo.githubusercontent.com/3fcaf6b91fb515b6ebf7128bcfdba1bc3adea28949d892190c84c5bb57c430ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4553362d537570706f72742d626c75652e737667)](https://github.com/global-source/javascript_uri_query)

---

One library to perform most of the **URI** operations. Such as,

ActionMethodDescriptionAddURI.addNew(key, val)To add new param to URL.Bulk AddURI.add(\[{key1 : val1},{key2: val2}\])To add multiple params to URL.AppendURI.append(key, val)To add new item to the existing value.Update ValueURI.add(\[{key: val}\])To perform update with add function.DeleteURI.remove(key)To remove param from URL.Bulk DeleteURI.remove(\[key1, key2\])To remove multiple param from URL.Delete AllURI.removeAll()To remove all param in the URL.ClearURI.clear()TO clear the URL history.UpdateURI.update()To update URI status.GetURI.get(key)To get value of a param.Installation
------------

[](#installation)

Include the URI library to project by using,

```

```

For **ES6**:

```

     let URI = new _URI();

```

Methods
-------

[](#methods)

### getAll()

[](#getall)

To get list of URI params as Object.

```

           URI.getAll();

        // URL : http://domain.com/?type=my-ticket&page=1&limit=5

        // Output : ["type=myTicket", "page=1", "limit=5"]

```

### get()

[](#get)

To get value of the param from URI.

```
           URI.get('type');

        // URI : http://domain.com/?type=myTicket&page=2&limit=5

        // OUT : 'myTicket'
```

### addNew()

[](#addnew)

To add single param to the URI. If item already exists, then value get updated.

```

           URI.add('page', 1);

        // Before URL : http://domain.com/?type=my-ticket

        // After URL : http://domain.com/?type=my-ticket&page=1

```

### add()

[](#add)

To add list of params to the URI. If item already exists, then value get updated.

```

           URI.add([{'page': 1}, {'limit': 5}]);

        // Before URL : http://domain.com/?type=my-ticket

        // After URL : http://domain.com/?type=my-ticket&page=1&limit=5

```

### append()

[](#append)

To append value to the param in the URI.

```

           URI.append(name, bala);

        // Before URL : http://domain.com/?name=shankar

        // After URL : http://domain.com/?name=shankar,bala

```

### remove()

[](#remove)

To remove list of param from the URI.

```

           URI.remove(['page','limit']);   // For Bulk.
           URI.remove('type');             // For Single.
           URI.remove('id','55')       // For Single Value.

        // Before URL : http://domain.com/?type=my-ticket&page=1&limit=5

        // After URL : http://domain.com/?

        // For Single Value:
        // Before URL : http://domain.com/?id=45,23,55,34

        // After URL : http://domain.com/?id=45,23,34
```

### removeAll()

[](#removeall)

To remove all param in the URI.

```

           URI.removeAll();

        // Before URI : http://domain.com/?type=my-ticket&page=2&limit=5

        // After URI : http://domain.com/?
```

### prevPage()

[](#prevpage)

To go back to previous page by update the URI.

```

           URI.prevPage();

        // Before URL : http://domain.com/?type=my-ticket&page=2&limit=5

        // After URL : http://domain.com/?type=my-ticket&page=1&limit=5
```

### nextPage()

[](#nextpage)

To move to next page by update the URI.

```

           URI.nextPage();

        // Before URL : http://domain.com/?type=my-ticket&page=1&limit=5

        // After URL : http://domain.com/?type=my-ticket&page=2&limit=5

```

### isParamExists()

[](#isparamexists)

To check the param is exist in URI or Not.

```

           URI.isParamExists('page');
           URI.isParamExists('newPage');

        // URL : http://domain.com/?type=my-ticket&page=2&limit=5

        // OUT 1 : true
        // OUT 2 : false

```

License
=======

[](#license)

MIT License

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Total

2

Last Release

2414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/310342f019559d8ee139f94cfbbcb0c83fc577c6cda3ec3373ee7ba81314f32c?d=identicon)[shankarthiyagaraajan](/maintainers/shankarthiyagaraajan)

---

Top Contributors

[![shankarThiyagaraajan](https://avatars.githubusercontent.com/u/10199091?v=4)](https://github.com/shankarThiyagaraajan "shankarThiyagaraajan (68 commits)")

### Embed Badge

![Health badge](/badges/global-source-javascript-uri-query/health.svg)

```
[![Health](https://phpackages.com/badges/global-source-javascript-uri-query/health.svg)](https://phpackages.com/packages/global-source-javascript-uri-query)
```

###  Alternatives

[kmlaravel/laravel-geographical-calculator

laravel package help you to implement geographical calculation, with With several algorithms that help you deal with coordinates

42677.2k2](/packages/kmlaravel-laravel-geographical-calculator)[joaopaulolndev/filament-general-settings

Filament package to manage general settings

18129.7k](/packages/joaopaulolndev-filament-general-settings)[foowie/dependentselectbox

Selectbox whose options are depended on another selectbox. Library for Nette Framework

1027.8k](/packages/foowie-dependentselectbox)[christianessl/landmap-generation

Generate pixelated, random world maps in PHP.

173.6k](/packages/christianessl-landmap-generation)

PHPackages © 2026

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