PHPackages                             brunodebarros/fix-php-post-input - 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. brunodebarros/fix-php-post-input

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

brunodebarros/fix-php-post-input
================================

If your $\_POST/$\_FILES are empty and they shouldn't be, this library fixes them.

v2.0.0(6mo ago)21.1k↓40.7%MITPHPPHP &gt;=7.0

Since Jun 21Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/pocketarc/fix-php-post-input)[ Packagist](https://packagist.org/packages/brunodebarros/fix-php-post-input)[ Docs](https://github.com/pocketarc/fix-php-post-input)[ RSS](/packages/brunodebarros-fix-php-post-input/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

What is pocketarc/fix-php-post-input
------------------------------------

[](#what-is-pocketarcfix-php-post-input)

`pocketarc/fix-php-post-input` fixes your `$_POST` and `$_FILES` if they're empty and they shouldn't be.

**Why?** Some incorrectly setup servers will not pass the right information required for PHP to automatically process input data (e.g. they'll say the HTTP method was GET because of an internal redirect).

For apps where you control the environment, this is easy to resolve. For self-hosted apps, that anyone can install anywhere, it's important to make sure that things continue to work without having to ask less tech-savvy users to mess with their server configurations.

In those cases, this library will automatically fix the `$_POST` and `$_FILES` arrays for you so that you can continue working without having to worry about it.

As a bonus, it will also process JSON (`application/json`) input into `$_POST` for you.

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

[](#requirements)

- PHP 5.4 or HHVM

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

[](#installation)

`pocketarc/fix-php-post-input` loads automatically with Composer.

```
composer require pocketarc/fix-php-post-input

```

Usage
-----

[](#usage)

Once required, the package will automatically fix your `$_POST`/`$_FILES` for you. If they don't need fixing, this package will do nothing.

Suggestions, questions and complaints.
--------------------------------------

[](#suggestions-questions-and-complaints)

If you've got any suggestions, questions, or anything you don't like about this library, [you should create an issue here](https://github.com/pocketarc/fix-php-post-input/issues/new). Feel free to fork this project, if you want to contribute to it.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance66

Regular maintenance activity

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

204d ago

Major Versions

v1.3.0 → v2.0.02025-10-26

PHP version history (2 changes)v1.0.0PHP &gt;=5.4

v2.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/09f83048fb2fd781448b09e26ed424a95666bf30850b9d3945d0202b1cdcb40b?d=identicon)[pocketarc](/maintainers/pocketarc)

---

Top Contributors

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

---

Tags

phpcompatibilityfilesinputpost

### Embed Badge

![Health badge](/badges/brunodebarros-fix-php-post-input/health.svg)

```
[![Health](https://phpackages.com/badges/brunodebarros-fix-php-post-input/health.svg)](https://phpackages.com/packages/brunodebarros-fix-php-post-input)
```

###  Alternatives

[symfony/polyfill-mbstring

Symfony polyfill for the Mbstring extension

7.8k1.2B515](/packages/symfony-polyfill-mbstring)[symfony/polyfill-ctype

Symfony polyfill for ctype functions

4.0k982.0M125](/packages/symfony-polyfill-ctype)[symfony/polyfill-php72

Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions

4.7k674.7M31](/packages/symfony-polyfill-php72)[symfony/polyfill-intl-idn

Symfony polyfill for intl's idn\_to\_ascii and idn\_to\_utf8 functions

3.4k774.6M90](/packages/symfony-polyfill-intl-idn)[symfony/polyfill-intl-normalizer

Symfony polyfill for intl's Normalizer class and related functions

2.1k830.2M36](/packages/symfony-polyfill-intl-normalizer)[symfony/polyfill-php73

Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions

2.4k581.8M67](/packages/symfony-polyfill-php73)

PHPackages © 2026

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