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

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

technically-php/rack-utils-http-query
=====================================

Tiny package to build HTTP URL query string compatible with Rails apps

1.0(9y ago)021MITPHPPHP &gt;=5.6

Since Nov 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/technically-php/rack-utils-http-query)[ Packagist](https://packagist.org/packages/technically-php/rack-utils-http-query)[ RSS](/packages/technically-php-rack-utils-http-query/feed)WikiDiscussions master Synced 2d ago

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

RackUtils HTTP query
====================

[](#rackutils-http-query)

Tiny package to build HTTP URL query string compatible with Rails app.

Usage
=====

[](#usage)

This library produces output without explicit indices. As simple as that.

```
$vars = ['fruits' => ['apple', 'banana', 'orange']];
$query_string = \TechnicallyPhp\RackUtilsHttpQuery::build($vars);
var_dump($query_string);
// will output: "fruits[]=apple&fruits[]=banana&fruits[]=orange"
```

Motivation
==========

[](#motivation)

PHP stock [`http_build_query()`](http://php.net/manual/en/function.http-build-query.php)converts array into items with indices explicitly defined. This is not compatible with the way Rails applications parse requests.

```
$vars = ['fruits' => ['apple', 'banana', 'orange']];
$query_string = http_build_query($vars);
var_dump($query_string);
// will output: "fruits[0]=apple&fruits[1]=banana&fruits[2]=orange"
```

Relevant StackOverflow discussions:

1. [php url query nested array with no index](http://stackoverflow.com/questions/11996573/php-url-query-nested-array-with-no-index)

Details
=======

[](#details)

This package follows `Rack::Utils.parse_nested_query` [specification](https://github.com/rack/rack/blob/master/test/spec_utils.rb). Please check [RackUtilsHttpQueryTest.php](./tests/RackUtilsHttpQueryTest.php#L59).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3529d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/370680?v=4)[Ivan Voskoboinyk](/maintainers/e1himself)[@e1himself](https://github.com/e1himself)

---

Top Contributors

[![e1himself](https://avatars.githubusercontent.com/u/370680?v=4)](https://github.com/e1himself "e1himself (20 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/technically-php-rack-utils-http-query/health.svg)

```
[![Health](https://phpackages.com/badges/technically-php-rack-utils-http-query/health.svg)](https://phpackages.com/packages/technically-php-rack-utils-http-query)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.8k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M89](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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