PHPackages                             appserver-io/webserver - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. appserver-io/webserver

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

appserver-io/webserver
======================

Multithreaded webserver for php written in php

5.1.5(7y ago)455.7k↓100%14[9 issues](https://github.com/appserver-io/webserver/issues)1OSL-3.0PHPPHP &gt;=5.4.0

Since Jul 11Pushed 7y ago13 watchersCompare

[ Source](https://github.com/appserver-io/webserver)[ Packagist](https://packagist.org/packages/appserver-io/webserver)[ Docs](https://github.com/appserver-io/webserver)[ RSS](/packages/appserver-io-webserver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (10)Versions (66)Used By (1)

webserver
=========

[](#webserver)

[![Latest Stable Version](https://camo.githubusercontent.com/6d61b48bb8061a398b3507dd66b8e961707bf35057e57ee964d8b26dbba10a4e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170707365727665722d696f2f7765627365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/appserver-io/webserver)[![Total Downloads](https://camo.githubusercontent.com/fa576462dae65302b25e5dddcfac2a9988d1f93ef2b5d8b70e4cebc8d26c1471/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6170707365727665722d696f2f7765627365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/appserver-io/webserver)[![License](https://camo.githubusercontent.com/af08e8f6f5ad4ccc98ec6a1b25a8f9ca684ad2e791db3eae9d8bf9ae9d28b25d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6170707365727665722d696f2f7765627365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/appserver-io/webserver)[![Build Status](https://camo.githubusercontent.com/3c73344380603261d4e1dba2211ef5f003b6c854f35d682df4876a85e402e661/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6170707365727665722d696f2f7765627365727665722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/appserver-io/webserver)[![Code Coverage](https://camo.githubusercontent.com/d33ef0962c660aeb43d97e03aa3b7625ff07ead08c98ea1b58eabeed855cab53/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f6170707365727665722d696f2f7765627365727665722e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/appserver-io/webserver)[![Code Quality](https://camo.githubusercontent.com/6f6388c5738b97542fab578da88ff98afc27c87afb57556b8963d8286ee678e5/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f6170707365727665722d696f2f7765627365727665722e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/appserver-io/webserver)

Introduction
============

[](#introduction)

Are you serious? A web server written in pure PHP for PHP? Ohhhh Yes! :) This is a HTTP/1.1 compliant webserver written in php. And the best... it has a php module and it's multithreaded!

We use this in the [`appserver.io`](http://www.appserver.io) project as a server component for handling HTTP requests.

Installation
============

[](#installation)

If you want to use the web server with your application add this

```
{
    "require": {
        "appserver-io/webserver": "dev-master"
    }
}
```

to your `composer.json` and invoke `composer update` in your project.

Usage
=====

[](#usage)

If you can satisfy the requirements it is very simple to use the webserver. Just do this:

```
git clone https://github.com/appserver-io/webserver
cd webserver
PHP_BIN=/path/to/your/threadsafe/php-binary bin/webserver
```

If you're using [`appserver.io`](http://www.appserver.io) the start line will be:

```
bin/webserver
```

Goto  and if all went good, you will see the welcome page of the php webserver. It will startup on insecure http port 9080 and secure https port 9443.

To test a php script just goto  and see what happens... ;)

Additionally you can pass two arguments to the startup script. The first one is the path to a custom configuration file, the second one to a custom autoloader file. For example, if you want to use your own configuration and autoloader files start the webserver with

```
bin/webserver path/to/your/configuration.xml path/to/your/autoloader.php
```

Both files can be absolute or relative to the webserver's root directory.

> Please be aware, that the autoloader *MUST* be able to load the webserver classes too, as it is not complementary but a replacement for the default composer autoloader.

Semantic versioning
===================

[](#semantic-versioning)

This library follows semantic versioning and its public API defines as follows:

- The public API, configuration and entirety of its modules
- The public interface of the `\AppserverIo\WebServer\ConnectionHandlers\HttpConnectionHandler` class
- The public interfaces within the `\AppserverIo\WebServer\Interfaces` namespace

External Links
==============

[](#external-links)

- Documentation at [appserver.io](http://appserver.io/get-started/documentation/1.1/webserver.html)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 51.7% 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 ~22 days

Recently: every ~154 days

Total

65

Last Release

2881d ago

Major Versions

2.0.2 → 3.2.02015-04-10

2.0.3 → 3.2.22015-05-26

2.0.x-dev → 3.4.12015-11-12

3.4.3 → 4.0.02016-01-22

4.0.9 → 5.0.02016-06-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/33b42e8c7314da5df45bca5d1dd786ea2b3d540fae5a5a9489580a886f2f4f39?d=identicon)[zelgerj](/maintainers/zelgerj)

![](https://www.gravatar.com/avatar/aa15f27f393eeb1f1a481fa7de89b41add17de686da79d49e07c5c77249c5e86?d=identicon)[wick-ed](/maintainers/wick-ed)

---

Top Contributors

[![zelgerj](https://avatars.githubusercontent.com/u/287595?v=4)](https://github.com/zelgerj "zelgerj (328 commits)")[![wick-ed](https://avatars.githubusercontent.com/u/4931168?v=4)](https://github.com/wick-ed "wick-ed (168 commits)")[![wagnert](https://avatars.githubusercontent.com/u/287509?v=4)](https://github.com/wagnert "wagnert (136 commits)")[![kingcrunch](https://avatars.githubusercontent.com/u/90388?v=4)](https://github.com/kingcrunch "kingcrunch (1 commits)")[![michaeldoehler](https://avatars.githubusercontent.com/u/188389?v=4)](https://github.com/michaeldoehler "michaeldoehler (1 commits)")[![sydekumf](https://avatars.githubusercontent.com/u/3983052?v=4)](https://github.com/sydekumf "sydekumf (1 commits)")

---

Tags

phpserverhttp serverwebserverhttpd

### Embed Badge

![Health badge](/badges/appserver-io-webserver/health.svg)

```
[![Health](https://phpackages.com/badges/appserver-io-webserver/health.svg)](https://phpackages.com/packages/appserver-io-webserver)
```

###  Alternatives

[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

828280.5k25](/packages/php-mcp-server)[felixfbecker/language-server

PHP Implementation of the Visual Studio Code Language Server Protocol

1.2k95.4k](/packages/felixfbecker-language-server)[appserver-io/dnsserver

Multithreaded DNS serve written in php

161.9k1](/packages/appserver-io-dnsserver)[renoki-co/laravel-healthchecks

Laravel Healthchecks is a simple controller class that helps you build your own healthchecks endpoint without issues.

5654.9k](/packages/renoki-co-laravel-healthchecks)[natanfelles/php-server

Fine-tuning on the PHP built-in web server.

2811.9k2](/packages/natanfelles-php-server)

PHPackages © 2026

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