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

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

arishem/php-http-server
=======================

A lightweight, in-house PHP HTTP server with WebSocket support.

1.0.1(1y ago)13MITPHP

Since Mar 10Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/DeveloperKeshavKumar/php-http-sever)[ Packagist](https://packagist.org/packages/arishem/php-http-server)[ RSS](/packages/arishem-php-http-server/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

php-http-sever
==============

[](#php-http-sever)

A minimal PHP-based HTTP server implementation and examples. Designed for local development and educational purposes — demonstrates basic request handling, routing, and response generation in PHP.

Features
--------

[](#features)

- Simple HTTP request handling
- Minimal routing examples
- Easy to run for local development and demos

Requirements
------------

[](#requirements)

- PHP 7.4+

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

[](#installation)

Clone the repository:

```
git clone https://github.com/DeveloperKeshavKumar/php-http-sever.git
cd php-http-sever
```

Running the server
------------------

[](#running-the-server)

There are two common ways to run a minimal PHP HTTP server locally:

1. Using PHP built-in web server (recommended for quick testing)

```
php -S 127.0.0.1:8080 -t public
```

2. If an entry script is provided (e.g. `server.php` or `run.php`)

```
php server.php
```

Replace `server.php` with the actual script name if present.

Examples
--------

[](#examples)

Describe examples or endpoints that the repo contains, e.g.

- GET / -&gt; returns "Hello World"
- GET /status -&gt; returns 200 OK with JSON

(Replace or expand sections above with concrete examples from the code.)

Contributing
------------

[](#contributing)

Contributions are welcome. Please open an issue to discuss changes or send a pull request.

License
-------

[](#license)

This repository is available under the MIT License. See the LICENSE file for details.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance53

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

2

Last Release

478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ce2406dd25376cf0a18b07955ae6255efda942a7ea1c1467e167a87a32626d2?d=identicon)[DeveloperKeshavKumar](/maintainers/DeveloperKeshavKumar)

---

Top Contributors

[![notnotkeshav](https://avatars.githubusercontent.com/u/94639526?v=4)](https://github.com/notnotkeshav "notnotkeshav (46 commits)")

---

Tags

phpmiddlewarerouterhttp serverwebsocket

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[hannesvdvreken/guzzle-debugbar

A Guzzle middleware that logs requests to debugbar's timeline

77428.9k2](/packages/hannesvdvreken-guzzle-debugbar)

PHPackages © 2026

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