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

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

phalanx/http
============

HTTP server framework for Phalanx

v0.2.0(1mo ago)01↑2900%2MITPHPPHP ^8.4

Since Mar 23Pushed 1mo agoCompare

[ Source](https://github.com/havy-tech/phalanx-http)[ Packagist](https://packagist.org/packages/phalanx/http)[ Docs](https://github.com/havy-tech/phalanx-http)[ RSS](/packages/phalanx-http/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (2)

 [![Phalanx](brand/logo.svg)](brand/logo.svg)

phalanx/http
============

[](#phalanxhttp)

Async HTTP server built on ReactPHP with scope-driven request handling. Every route handler receives an `ExecutionScope` with full access to concurrent task execution, service injection, and cancellation -- write concurrent data-fetching code that reads like sequential PHP.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Defining Routes](#defining-routes)
- [Route Groups](#route-groups)
- [Route Parameters](#route-parameters)
- [Concurrent Request Handling](#concurrent-request-handling)
- [Middleware](#middleware)
- [Mounting Sub-Groups](#mounting-sub-groups)
- [Loading Routes from Files](#loading-routes-from-files)
- [Server-Sent Events](#server-sent-events)
- [UDP Listeners](#udp-listeners)
- [WebSocket Integration](#websocket-integration)

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

[](#installation)

```
composer require phalanx/http
```

Requires PHP 8.4+, `phalanx/core`, `react/http`, and `nikic/fast-route`.

Quick Start
-----------

[](#quick-start)

```
