PHPackages                             srph/qp - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. srph/qp

AbandonedLibrary[Parsing &amp; Serialization](/categories/parsing)

srph/qp
=======

A library to parse or stringify query parameters in PHP.

v0.1.0(10y ago)012[1 issues](https://github.com/srph/qp/issues)MITPHP

Since Dec 12Pushed 10y agoCompare

[ Source](https://github.com/srph/qp)[ Packagist](https://packagist.org/packages/srph/qp)[ RSS](/packages/srph-qp/feed)WikiDiscussions master Synced 4w ago

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

qp [![Build Status](https://camo.githubusercontent.com/3845d44071217e9e9194eb428b8a29be6ea21f200d4f4568d68f672d77774625/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f737270682f71702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/srph/qp?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/e112674162d812e1bc81e8bf7d3aad81f0caa0fd705ce0a8e5401e083df5ae57/68747470733a2f2f706f7365722e707567782e6f72672f737270682f71702f762f737461626c65)](https://packagist.org/packages/srph/qp) [![Total Downloads](https://camo.githubusercontent.com/91230048b5854588c331827a3452dc7223cad364eb3873b67db9a517739cf66c/68747470733a2f2f706f7365722e707567782e6f72672f737270682f71702f646f776e6c6f616473)](https://packagist.org/packages/srph/qp) [![Latest Unstable Version](https://camo.githubusercontent.com/64b733859fe9d03187cebf655716497ac6240c67f9bcc044f050ae015afe1796/68747470733a2f2f706f7365722e707567782e6f72672f737270682f71702f762f756e737461626c65)](https://packagist.org/packages/srph/qp) [![License](https://camo.githubusercontent.com/662eea0f073ea2d7cf0052721c4b3080e9f5349dc0a427f9945614a5a3361352/68747470733a2f2f706f7365722e707567782e6f72672f737270682f71702f6c6963656e7365)](https://packagist.org/packages/srph/qp)
===========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#qp-----)

A library to parse or stringify query parameters in PHP.

Deprecation Notice
------------------

[](#deprecation-notice)

Use [`http_build_query`](http://php.net/manual/en/function.http-build-query.php) instead. This library doesn't have a valid use case.

Installing
----------

[](#installing)

```
composer require srph/qp
```

Supports versions `>=5.5.9` (**including `7.0`**).

Usage
-----

[](#usage)

```
use Qp\Qp;
Qp::parse('username=kier'); // ['username' => 'kier']
Qp::parse('user[name]=kier'); // ['user' => ['name' => 'kier']];
Qp::parse('users[]=kier'); // ['users' => ['kier']]
Qp::stringify(['username' => 'kier', 'password' => '****']); // 'username=kier&password=*****'
```

Limitations
-----------

[](#limitations)

- Parser does not support nested arrays and objects ().

I'm short in time at the moment, and I don't see their usage in real world application **yet**. But if you would like them to be supported (which I would consider **rare**), feel free to submit a pull request.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3854d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c6418b04ec2d5f377b9de0359c587e73637a8799d8e5a496263f7f307c0db81?d=identicon)[srph](/maintainers/srph)

---

Top Contributors

[![srph](https://avatars.githubusercontent.com/u/5093058?v=4)](https://github.com/srph "srph (29 commits)")

### Embed Badge

![Health badge](/badges/srph-qp/health.svg)

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

###  Alternatives

[pestphp/pest

The elegant PHP Testing Framework.

11.6k72.2M19.4k](/packages/pestphp-pest)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M324](/packages/drupal-core-dev)[duckfusion/waddle

PHP Library for parsing running GPS activities and calculating metrics

355.9k](/packages/duckfusion-waddle)

PHPackages © 2026

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