PHPackages                             bolt80/stupidhttp - 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. bolt80/stupidhttp

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

bolt80/stupidhttp
=================

A stupid and simple development HTTP server.

v0.2.0(13y ago)152.3k52Apache-2.0PHPPHP &gt;= 5.3.0

Since May 31Pushed 11y ago2 watchersCompare

[ Source](https://github.com/ludovicchabant/StupidHttp)[ Packagist](https://packagist.org/packages/bolt80/stupidhttp)[ Docs](http://bolt80.com/stupidhttp)[ RSS](/packages/bolt80-stupidhttp/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (2)

StupidHttp
==========

[](#stupidhttp)

As the name indicates, **StupidHttp** is a very simple (and not very smart) HTTP library for PHP. It only supports one client, and implements only the minimum features of the HTTP spec (and probably even less). However, it's a very helpful library to have if you want to quickly preview a static website locally, or if you want your application to feature a development web server.

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

[](#quick-start)

Here's a very quick example:

```
require 'vendor/bolt80/stupidhttp/lib/StupidHttp/Autoloader.php';
StupidHttp_Autoloader::register();

$server = new StupidHttp_WebServer('www_root', 8080);
$server->on('GET', '/')->call(function ($r) { echo 'Hello world!'; });
$server->run(array('run_browser' => true));

```

What this does:

- includes and registers the StupidHttp auto-loader
- creates a new webserver on port `8080` with a static files root directory set to `www_root` (relative to the current working directory).
- defines a route that will respond `Hello world!` when a client requests the website's root.
- runs the default browser.

Examples
--------

[](#examples)

StupidHttp ships with a few examples, appropriately located in the `examples`directory. Just run the PHP file from the command-line and you should see a simple web application show up in your default browser.

Other Resources
---------------

[](#other-resources)

For more information, documentation and examples, check out the [StupidHttp website](http://bolt80.com/stupidhttp/).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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

Unknown

Total

1

Last Release

5092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/024986b12cd2a545a5a6bf8a7cf0962dba00761b8f817e63ccbc31b5887b3005?d=identicon)[ludovicchabant](/maintainers/ludovicchabant)

---

Top Contributors

[![ludovicchabant](https://avatars.githubusercontent.com/u/470376?v=4)](https://github.com/ludovicchabant "ludovicchabant (24 commits)")[![hakre](https://avatars.githubusercontent.com/u/378849?v=4)](https://github.com/hakre "hakre (2 commits)")

---

Tags

httpwebservernet

### Embed Badge

![Health badge](/badges/bolt80-stupidhttp/health.svg)

```
[![Health](https://phpackages.com/badges/bolt80-stupidhttp/health.svg)](https://phpackages.com/packages/bolt80-stupidhttp)
```

###  Alternatives

[react/http

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

78126.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

175101.3M919](/packages/psr-http-server-handler)[duzun/hquery

An extremely fast web scraper that parses megabytes of HTML in a blink of an eye. No dependencies. PHP5+

363146.3k4](/packages/duzun-hquery)

PHPackages © 2026

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