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

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

horizom/dev-server
==================

Reverse proxy for PHP built-in server which supports multiprocessing and TLS/SSL encryption

3.1.0(3y ago)127↓100%MITPHPPHP &gt;=7.0.0

Since Aug 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/horizom/dev-server)[ Packagist](https://packagist.org/packages/horizom/dev-server)[ RSS](/packages/horizom-dev-server/feed)WikiDiscussions master Synced 1mo ago

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

[![Total Downloads](https://camo.githubusercontent.com/6aeb095c76a8c8bec43bd1193a5edb961ad0d8d4975425b2dec60e15473d4926/68747470733a2f2f706f7365722e707567782e6f72672f686f72697a6f6d2f6465762d7365727665722f642f746f74616c2e737667)](https://packagist.org/packages/horizom/dev-server)[![Latest Stable Version](https://camo.githubusercontent.com/79862952f7689c3ebe6ccca6afe7bfa0f897ded6627f949936bb652b1b9ea270/68747470733a2f2f706f7365722e707567782e6f72672f686f72697a6f6d2f6465762d7365727665722f762f737461626c652e737667)](https://packagist.org/packages/horizom/dev-server)[![License](https://camo.githubusercontent.com/2a0dec22e347d161607fbc7a0dd37b2e78625f4bc4c4f3e58f76a6a2fc758b4f/68747470733a2f2f706f7365722e707567782e6f72672f686f72697a6f6d2f6465762d7365727665722f6c6963656e73652e737667)](https://packagist.org/packages/horizom/dev-server)

Horizom Dev Server
==================

[](#horizom-dev-server)

Reverse proxy for PHP built-in server which supports multiprocessing and TLS/SSL encryption.

Installing
----------

[](#installing)

### Global install

[](#global-install)

```
composer global require horizom/dev-server
```

If not yet, you must add **`~/.composer/vendor/bin`** to `$PATH`.
Append the following statement to `~/.bashrc`, `~/.zshrc` or what not.

```
export PATH="$HOME/.composer/vendor/bin:$PATH"
```

### Local install only for development environment

[](#local-install-only-for-development-environment)

```
composer require --dev horizom/dev-server
```

Use **`vendor/bin/horizom-serve`** as the execution path.

Usage
-----

[](#usage)

### Quick start

[](#quick-start)

```
horizom-serve -S localhost -s localhost -t public
```

2 servers will start with the directory `public` as the document root:

- `http://localhost:8000`
- `https://localhost:44300`

Servers start with first unoccupied port within range depending on a scheme.

SchemeDefaultRange`HTTP`80008000-8099`HTTPS`4430044300-44399### Customize ports

[](#customize-ports)

```
horizom-serve -S localhost:8080 -s localhost:4000 -t public
```

2 servers will start with the directory `public` as the document root:

- `http://localhost:8080`
- `https://localhost:4000`

### Command Reference

[](#command-reference)

```
mpyw@localhost:~$ horizom-serve -h

Usage:
    horizom-serve

Example:
    horizom-serve -S localhost:8000 -s localhost:44300

[Required]
    -S   ":" of an HTTP server. Multiple arguments can be accepted.
    -s   ":" of an HTTPS server. Multiple arguments can be accepted.

[Optional]
    -n   The number of PHP built-in server clusters, from 1 to 20. Default is 10.
    -t   Path for the document root. Default is the current directory.
    -r   Path for the router script. Default is empty.
    -c   Path for the PEM-encoded certificate.
         Default is "/Users/username/.composer/vendor/horizom/dev-server/certificate.pem".

Restrictions:
    - The option -s is only supported on PHP 5.6.0 or later.
    - Access logs will not be displayed on Windows.

username@localhost:~$
```

Note for Windows users
----------------------

[](#note-for-windows-users)

Unfortunately, `cmd.exe` has no option to run via shebang `#!/usr/bin/env php`, so you need to create the following batch file in the proper directory.

### For Standalone PHP

[](#for-standalone-php)

```
@echo OFF
"C:\php\php.exe" "%HOMEPATH%\.composer\vendor\horizom\dev-server\horizom-serve" %*
```

### For XAMPP

[](#for-xampp)

```
@echo OFF
"C:\xampp\php\php.exe" "%HOMEPATH%\.composer\vendor\horizom\dev-server\horizom-serve" %*
```

License
-------

[](#license)

[MIT license](LICENSE)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

1355d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/412f8e786e65f078584b4bc2c0b7a44af095ab2c0d19a5fb7985598576ca4fda?d=identicon)[lambirou](/maintainers/lambirou)

---

Top Contributors

[![lambirou](https://avatars.githubusercontent.com/u/1428556?v=4)](https://github.com/lambirou "lambirou (2 commits)")

---

Tags

builtin-servermulti-processphpssltlsproxyservertlssslmultiprocessingreversemultiprocessBuilt-inbuiltin

### Embed Badge

![Health badge](/badges/horizom-dev-server/health.svg)

```
[![Health](https://phpackages.com/badges/horizom-dev-server/health.svg)](https://phpackages.com/packages/horizom-dev-server)
```

###  Alternatives

[spatie/laravel-webhook-server

Send webhooks in Laravel apps

1.1k8.8M22](/packages/spatie-laravel-webhook-server)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[voryx/thruway

Thruway WAMP router core

6771.0M17](/packages/voryx-thruway)[php-mcp/server

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

828280.5k25](/packages/php-mcp-server)[clue/socket-raw

Simple and lightweight OOP wrapper for PHP's low-level sockets extension (ext-sockets).

35111.1M48](/packages/clue-socket-raw)[laminas/laminas-server

Create Reflection-based RPC servers

2423.1M23](/packages/laminas-laminas-server)

PHPackages © 2026

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