PHPackages                             phpbg/mini-httpd - 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. phpbg/mini-httpd

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

phpbg/mini-httpd
================

This is a small http server framework built on top of react http. It allows to quickly build simple applications

0.5.0(5y ago)3761MITJavaScriptPHP &gt;=7.0CI failing

Since Oct 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/phpbg/mini-httpd)[ Packagist](https://packagist.org/packages/phpbg/mini-httpd)[ RSS](/packages/phpbg-mini-httpd/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (9)Versions (16)Used By (0)

PhpBg\\MiniHttpd
================

[](#phpbgminihttpd)

This is a small http server framework built on top of [React HTTP](https://github.com/reactphp/http).

This framework is designed to build quick proofs of concepts.

It is **not** mature enough to run in production environments, because:

- it still contains synchronous blocking code
- it lacks a dependency (ioc) /configuration management

License
-------

[](#license)

MIT

Features
--------

[](#features)

Most of features are directly inherited from [PHP React HTTP](https://github.com/reactphp/http)

- [Middleware](https://github.com/reactphp/http#middleware) based
    - see  for interesting middlewares you can add to this library
- Highly customizable
- [PSR-7 messages](https://www.php-fig.org/psr/psr-7/)
- Basic routing
- Basic [PSR-3 logging](https://www.php-fig.org/psr/psr-3/)
- Static files serving
- Let you focus on **your service logic**, not **building a HTTP response** (boooring)
    - Just return `arrays` or `objects` in your route handlers, that's it:

    ```
    function (ServerRequestInterface $request) {
        return ['hello' => 'world'];
    }
    ```

Install
-------

[](#install)

Install with [composer](https://getcomposer.org/):

```
composer require phpbg/mini-httpd

```

Examples
--------

[](#examples)

See `example` folder

- `bare-minimal-json-server.php` shows the very minimal setup for json rendering
- `full-featured-server.php` shows a full setup with:
    - Static files serving
    - Route redirection examples
    - Automatic PHTML renderer features and suggested layout
    - Accessing request params with proper validation / filtering

There is also a complete example that integrates with ratchet Websockets here:

TODO
----

[](#todo)

- writing tests

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Recently: every ~183 days

Total

14

Last Release

1928d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1350d8c1326e5a10ff142b33e9d7ad6363acc427900a9a581cc9fa76329c31b0?d=identicon)[Samuel CHEMLA](/maintainers/Samuel%20CHEMLA)

---

Top Contributors

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

---

Tags

frameworkhttp-serverphpreactphphttpserverreacthttpd

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpbg-mini-httpd/health.svg)

```
[![Health](https://phpackages.com/badges/phpbg-mini-httpd/health.svg)](https://phpackages.com/packages/phpbg-mini-httpd)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.8k](/packages/guzzlehttp-psr7)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.1k337.6k1](/packages/ccxt-ccxt)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69734.4M145](/packages/algolia-algoliasearch-client-php)[amphp/http-server

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

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

PHPackages © 2026

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