PHPackages                             youngj/httpserver - 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. youngj/httpserver

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

youngj/httpserver
=================

A simple HTTP server, written in PHP, that serves PHP scripts and static files.

v1.0.0(13y ago)6119.0k↓66.7%20[3 issues](https://github.com/youngj/httpserver/issues)[1 PRs](https://github.com/youngj/httpserver/pulls)1MITPHPPHP &gt;=5.3

Since Jul 19Pushed 12y ago4 watchersCompare

[ Source](https://github.com/youngj/httpserver)[ Packagist](https://packagist.org/packages/youngj/httpserver)[ Docs](https://github.com/youngj/httpserver)[ RSS](/packages/youngj-httpserver/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (1)

```
HTTPServer
http://github.com/youngj/httpserver

A simple HTTP server,
    written in PHP,
    that serves PHP scripts and static files,
    for use in developing PHP applications.

Motivation:
 * To allow running PHP scripts in a web browser on a development computer
   without needing to install a web server like Apache or Nginx.
 * To allow automated scripts (e.g. Selenium tests) to spawn a HTTP server with
   custom environment variables (e.g. to override some application config settings),
   and easily capture server log output.
 * To allow more rapid debugging, by printing stderr output (e.g. error_log())
   directly to the console instead of a server log file.

Dependencies:
    * PHP 5.3 or higher
    * php-cgi binary

Features:
    * Works on Windows as well as POSIX systems.
    * Can handle many concurrent connections using non-blocking sockets.
    * Implements HTTP Keep-Alive for better performance.
    * Clients can define basically any server configuration / rewrite rules
      just by creating a subclass of HTTPServer.
    * Nearly all PHP scripts should work without modification. (Each PHP
      request is run in an isolated environment using PHP-CGI.)
    * Does not require any PHP extensions.

Caveats:
    * Should NOT be used as a production web server open to untrusted traffic.
    * Not very robust (e.g. no connection limit or timeouts)
    * May have security flaws
    * On Windows, PHP requests will block the server until the php-cgi process
      completes (PHP on Windows cannot share sockets across multiple processes,
      and does not have non-blocking pipes).
    * PHP scripts that depend on server-specific extensions (e.g. functions like
      apache_*, iis_*, nsapi_*) will not work.

How to use:
    Clients should subclass HTTPServer and override the route_request() method
    (and possibly other methods as necessary).

    See examples/example_server.php.

License:
    See LICENSE.txt
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

5048d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25086?v=4)[Rob Loach](/maintainers/RobLoach)[@RobLoach](https://github.com/RobLoach)

---

Top Contributors

[![youngj](https://avatars.githubusercontent.com/u/343100?v=4)](https://github.com/youngj "youngj (8 commits)")[![quartzjer](https://avatars.githubusercontent.com/u/61632?v=4)](https://github.com/quartzjer "quartzjer (2 commits)")[![ahamid](https://avatars.githubusercontent.com/u/77031?v=4)](https://github.com/ahamid "ahamid (1 commits)")[![grugnog](https://avatars.githubusercontent.com/u/905689?v=4)](https://github.com/grugnog "grugnog (1 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (1 commits)")

### Embed Badge

![Health badge](/badges/youngj-httpserver/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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