PHPackages                             amphp/http-server-form-parser - 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. amphp/http-server-form-parser

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

amphp/http-server-form-parser
=============================

An HTTP server plugin that simplifies form data handling. Effortlessly parse incoming form submissions and extracting its data.

v2.0.0(2y ago)18100.9k↑159.1%5[1 issues](https://github.com/amphp/http-server-form-parser/issues)13MITHTMLPHP &gt;=8.1CI failing

Since Sep 13Pushed 2y ago6 watchersCompare

[ Source](https://github.com/amphp/http-server-form-parser)[ Packagist](https://packagist.org/packages/amphp/http-server-form-parser)[ Docs](https://amphp.org/http-server-form-parser)[ GitHub Sponsors](https://github.com/amphp)[ RSS](/packages/amphp-http-server-form-parser/feed)WikiDiscussions 2.x Synced 3w ago

READMEChangelog (10)Dependencies (11)Versions (14)Used By (13)

http-server-form-parser
=======================

[](#http-server-form-parser)

This package is an add-on to [`amphp/http-server`](https://github.com/amphp/http-server), which allows parsing request bodies as forms in either `x-www-form-urlencoded` or `multipart/form-data` format.

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

[](#installation)

This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```
composer require amphp/http-server-form-parser
```

Usage
-----

[](#usage)

Basic usage works by calling `Form::fromRequest($request)`, which will buffer the request body and parse it. This method may be called multiple times, so both a [middleware](https://github.com/amphp/http-server#middleware) and [request handler](https://github.com/amphp/http-server#requesthandler) may access the form body.

```
use Amp\Http\Server\FormParser\Form;
use Amp\Http\Server\Request;
use Amp\Http\Server\RequestHandler\ClosureRequestHandler;
use Amp\Http\Server\Response;
use Amp\Http\Status;

$requestHandler = new ClosureRequestHandler(function (Request $request) {
    $form = Form::fromRequest($request);

    return new Response(Status::OK, [
        "content-type" => "text/plain; charset=utf-8"
    ], $form->getValue("text") ?? "Hello, World!");
});
```

There's also an advanced streaming parser included, `StreamingFormParser`, which can be used to stream uploaded files to disk or other locations.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 53.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 ~139 days

Recently: every ~123 days

Total

14

Last Release

1034d ago

Major Versions

v1.1.5 → v2.0.0-beta.12022-04-19

PHP version history (3 changes)v1.0.0PHP &gt;=7

v1.1.4PHP &gt;=7.1

v2.0.0-beta.1PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1628287?v=4)[Aaron Piotrowski](/maintainers/Trowski)[@trowski](https://github.com/trowski)

![](https://www.gravatar.com/avatar/12852217f3369e8144bc9ce6ac2a2341c28c5512c5b3df5749bfbbd45b6877ff?d=identicon)[kelunik](/maintainers/kelunik)

![](https://www.gravatar.com/avatar/f6db63ad594446f67d79532b75c69439fd0df779cc90868b43c187c02a4221ef?d=identicon)[bwoebi](/maintainers/bwoebi)

---

Top Contributors

[![kelunik](https://avatars.githubusercontent.com/u/2743004?v=4)](https://github.com/kelunik "kelunik (50 commits)")[![trowski](https://avatars.githubusercontent.com/u/1628287?v=4)](https://github.com/trowski "trowski (38 commits)")[![evll](https://avatars.githubusercontent.com/u/9748640?v=4)](https://github.com/evll "evll (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![rekryt](https://avatars.githubusercontent.com/u/181338?v=4)](https://github.com/rekryt "rekryt (1 commits)")[![Pato05](https://avatars.githubusercontent.com/u/20874747?v=4)](https://github.com/Pato05 "Pato05 (1 commits)")[![Nevay](https://avatars.githubusercontent.com/u/22509671?v=4)](https://github.com/Nevay "Nevay (1 commits)")

---

Tags

amphpformformshtmlhttphttp-servermultipart-formdataparserphpx-www-form-urlencodedhttpasyncnon-blockingampamphpformrevolt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amphp-http-server-form-parser/health.svg)

```
[![Health](https://phpackages.com/badges/amphp-http-server-form-parser/health.svg)](https://phpackages.com/packages/amphp-http-server-form-parser)
```

###  Alternatives

[amphp/http-server

A non-blocking HTTP application server for PHP based on Amp.

1.3k5.9M104](/packages/amphp-http-server)[amphp/http-client

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.

7298.5M185](/packages/amphp-http-client)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k885.1k22](/packages/danog-madelineproto)[amphp/websocket-client

Async WebSocket client for PHP based on Amp.

1624.3M54](/packages/amphp-websocket-client)[amphp/websocket

Shared code for websocket servers and clients.

464.4M10](/packages/amphp-websocket)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

164685.0k56](/packages/amphp-redis)

PHPackages © 2026

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