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

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

innmind/http-server
===================

Http server

6.0.0(3mo ago)016.1k↓47.8%3MITPHPPHP ~8.4CI passing

Since Aug 4Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Innmind/HttpServer)[ Packagist](https://packagist.org/packages/innmind/http-server)[ Docs](http://github.com/Innmind/HttpServer)[ RSS](/packages/innmind-http-server/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (17)Used By (3)

Http Server
===========

[](#http-server)

[![Build Status](https://github.com/innmind/httpserver/workflows/CI/badge.svg?branch=master)](https://github.com/innmind/httpserver/actions?query=workflow%3ACI)[![Type Coverage](https://camo.githubusercontent.com/d5542be319151970e603f480b0bf78b2b8d28ec3c1a13703851662e090d1954a/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f687474707365727665722f636f7665726167652e737667)](https://shepherd.dev/github/innmind/httpserver)

Entry point to build an HTTP server.

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

[](#installation)

```
composer require innmind/http-server
```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use Innmind\HttpServer\Main;
use Innmind\Http\{
    ServerRequest,
    Response,
};
use Innmind\OperatingSystem\OperatingSystem;
use Innmind\Immutable\Map;

new class extends Main {
    /**
     * @param Map $env
     */
    protected function preload(OperatingSystem $os, Map $env): void
    {
        // optional, use this method to boostrap your app
    }

    protected function main(ServerRequest $request): Response
    {
        // handle the request here
    }
};
```

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance81

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

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

Recently: every ~276 days

Total

14

Last Release

100d ago

Major Versions

1.4.0 → 2.0.02020-03-01

2.1.0 → 3.0.02022-12-18

3.2.0 → 4.0.02023-11-01

4.1.0 → 5.0.02025-07-13

5.0.0 → 6.0.02026-02-08

PHP version history (6 changes)1.0.0PHP ~7.2

2.0.0PHP ~7.4

2.1.0PHP ~7.4|~8.0

3.0.0PHP ~8.1

4.0.0PHP ~8.2

6.0.0PHP ~8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

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

---

Tags

httpserver

### Embed Badge

![Health badge](/badges/innmind-http-server/health.svg)

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

###  Alternatives

[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[hhxsv5/laravel-s

🚀 LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

3.9k676.0k10](/packages/hhxsv5-laravel-s)[amphp/http-server

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

1.3k4.5M81](/packages/amphp-http-server)[swow/swow

Coroutine-based multi-platform support engine with a focus on concurrent I/O

1.3k2.1M84](/packages/swow-swow)[psr/http-server-handler

Common interface for HTTP server-side request handler

177101.3M921](/packages/psr-http-server-handler)[amphp/websocket-server

Websocket server for Amp's HTTP server.

124265.1k20](/packages/amphp-websocket-server)

PHPackages © 2026

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