PHPackages                             azjezz/http-normalizer - 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. azjezz/http-normalizer

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

azjezz/http-normalizer
======================

Normalize Http super globals

v1.1.0(5y ago)29751MITHack

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/azjezz/http-normalizer)[ Packagist](https://packagist.org/packages/azjezz/http-normalizer)[ RSS](/packages/azjezz-http-normalizer/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (6)Dependencies (5)Versions (7)Used By (1)

HTTP Normalizer
===============

[](#http-normalizer)

Normalize Http super globals.

---

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

[](#installation)

This package can be install with Composer.

```
$ composer require azjezz/http-normalizer
```

---

Usage
-----

[](#usage)

### Normalize

[](#normalize)

> Normalize super globals : `$_GET`, `$_POST`, and `$_COOKIE` ... etc :

```
$_GET = [
  'a' => ['b' => '4'],
  'c' => [0 => 4, 'c' => ['s' => ['f' => [0 => '3']]]],
  'b' => '3',
  'foo' => [0 => 'baz', 1 => 'qux'],
];

$query = AzJezz\HttpNormalizer\normalize($_GET);

/**
 * dict [
 *   "a[b]" => "4",
 *   "c[0]" => "4",
 *   "c[c][s][f][0]" => "3",
 *   "b" => "3",
 *   "foo[0]" => "baz",
 *   "foo[1]" => "qux",
 * ]
 */
```

> Normalize `$_FILES` super global :

```
$_FILES = [
  'slide-shows' => [
    'tmp_name' => [
      0 => ['slides' => [0 => 'tmpfoo', 1 => 'tmpbar']],
    ],
    'error' => [0 => ['slides' => [0 => 0, 1 => 0]]],
    'name' => [0 => ['slides' => [0 => 'foo.txt', 1 => 'bar.txt']]],
    'size' => [0 => ['slides' => [0 => 123, 1 => 200]]],
    'type' => [0 => ['slides' => [0 => 'text/plain', 1 => 'text/plain']]],
  ],
];

$files = AzJezz\HttpNormalizer\normalize_files($_FILES);

/**
 * dict [
 *   "slide-shows[0][slides][0]" => shape(
 *     'tmp_name' => 'tmpfoo',
 *     'size' => 123,
 *     'error' => 0,
 *     'name' => 'foo.txt',
 *     'type' =>'text/plain',
 *   ),
 *   "slide-shows[0][slides][1]" => shape(
 *     'tmp_name' => 'tmpbar',
 *     'size' => 200,
 *     'error' => 0,
 *     'name' => 'bar.txt',
 *     'type' =>'text/plain',
 *   ),
 * ]
 */
```

### Parse

[](#parse)

> Parse http request body, query strings, cookie strings ... etc :

```
$input = 'a=b&c[]=4&b=3&a[b]=4&c[c][s][f][]=3&foo[]=baz&foo[]=qux';
$query = AzJezz\HttpNormalizer\parse($input);

/**
 * vec [
 *   "a[b]" => "4",
 *   "c[0]" => "4",
 *   "c[c][s][f][0]" => "3",
 *   "b" => "3",
 *   "foo[0]" => "baz",
 *   "foo[1]" => "qux",
 * ]
 */
```

---

License
-------

[](#license)

The Http Normalizer Project is open-sourced software licensed under the MIT-licensed.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~123 days

Recently: every ~153 days

Total

6

Last Release

1978d ago

Major Versions

0.2.0 → v1.0.02019-11-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/8489d7c85bfa7c637b8e13484f3f659652aea0568b6e7f9e66edeb0649b5a2f1?d=identicon)[azjezz](/maintainers/azjezz)

---

Top Contributors

[![azjezz](https://avatars.githubusercontent.com/u/29315886?v=4)](https://github.com/azjezz "azjezz (15 commits)")[![lexidor](https://avatars.githubusercontent.com/u/31805625?v=4)](https://github.com/lexidor "lexidor (1 commits)")

### Embed Badge

![Health badge](/badges/azjezz-http-normalizer/health.svg)

```
[![Health](https://phpackages.com/badges/azjezz-http-normalizer/health.svg)](https://phpackages.com/packages/azjezz-http-normalizer)
```

###  Alternatives

[slack/hack-json-schema

Hack JSON Schema generator

302.4k](/packages/slack-hack-json-schema)

PHPackages © 2026

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