PHPackages                             vdhicts/http-query-builder - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. vdhicts/http-query-builder

ActiveLibrary[HTTP &amp; Networking](/categories/http)

vdhicts/http-query-builder
==========================

Replacement of http\_build\_query to allow the same parameter multiple times.

v2.1.0(3mo ago)117.7k↑15.4%3MITPHPPHP ^8.3

Since Aug 5Pushed 3mo agoCompare

[ Source](https://github.com/vdhicts/http-query-builder)[ Packagist](https://packagist.org/packages/vdhicts/http-query-builder)[ Docs](https://github.com/vdhicts/http-query-builder)[ RSS](/packages/vdhicts-http-query-builder/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (3)

http-query-builder
==================

[](#http-query-builder)

Replacement of `http_build_query` to allow the same parameter multiple times.

Requirements
------------

[](#requirements)

This package requires PHP 8.3 or higher.

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

[](#installation)

You can install the package via composer:

`composer require vdhicts/http-query-builder`

Usage
-----

[](#usage)

The problem with the build-in `http_build_query` method is that it doesn't accept the same parameter multiple times as it overwrites the key in the array. When you need to consume an API that uses those parameters (for example [FastAPI](https://fastapi.tiangolo.com/)supports it), this package comes in handy.

### Getting started

[](#getting-started)

```
use Vdhicts\HttpQueryBuilder\Builder;

$builder = Builder::make()
    ->add('filter', 'a:1')
    ->add('filter', 'b:2');
echo $builder; // filter=a%3A1&filter=b%3A2
```

Contributing
------------

[](#contributing)

Found a bug or want to add a new feature? Great! There are also many other ways to make meaningful contributions such as reviewing outstanding pull requests and writing documentation. Even opening an issue for a bug you found is appreciated.

When you create a pull request, make sure it is tested, following the code standard (run `composer code-style:fix` to take care of that for you) and please create one pull request per feature. In exchange, you will be credited as contributor.

### Testing

[](#testing)

To run the tests, you can use the following command:

```
composer test
```

### Security

[](#security)

If you discover any security related issues in this or other packages of Vdhicts!, please email instead of using the issue tracker.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance82

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Total

4

Last Release

96d ago

Major Versions

v1.0.0 → v2.0.02025-05-24

PHP version history (2 changes)v1.0.0PHP ^7.4 || ^8.0

v2.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/88d23e7b707d1cfe0eea91c00590613f45e0c75cb0a3ce89354328332e5c0c02?d=identicon)[vdhicts](/maintainers/vdhicts)

---

Tags

httpphpquerybuilderhttp\_build\_query

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vdhicts-http-query-builder/health.svg)

```
[![Health](https://phpackages.com/badges/vdhicts-http-query-builder/health.svg)](https://phpackages.com/packages/vdhicts-http-query-builder)
```

###  Alternatives

[io-developer/php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 5.4+ and 7+ compatible

4842.6M12](/packages/io-developer-php-whois)[marcin-orlowski/laravel-api-response-builder

Helps building nice, normalized and easy to consume Laravel REST API.

843479.9k3](/packages/marcin-orlowski-laravel-api-response-builder)[crwlr/query-string

A library for convenient handling of query strings used in HTTP requests.

206.2M6](/packages/crwlr-query-string)[illuminatech/data-provider

Allows easy build for DB queries from API requests

4413.9k](/packages/illuminatech-data-provider)[bjerke/api-query-builder

A query builder for Laravel that parses the request and uses Eloquent ORM to query database

267.7k1](/packages/bjerke-api-query-builder)[bjerke/laravel-bread

A boilerplate package for BREAD operations through REST API in Laravel

115.2k](/packages/bjerke-laravel-bread)

PHPackages © 2026

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