PHPackages                             carlosvini/serve2 - 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. carlosvini/serve2

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

carlosvini/serve2
=================

Concurrent alternative to PHP built-in web server.

v0.1.2(6y ago)2321[1 issues](https://github.com/carlosvini/serve2/issues)MITPHP

Since May 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/carlosvini/serve2)[ Packagist](https://packagist.org/packages/carlosvini/serve2)[ Docs](https://github.com/carlosvini/serve2)[ RSS](/packages/carlosvini-serve2/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

serve2
======

[](#serve2)

**As of 7.4 it's possible to set PHP\_CLI\_SERVER\_WORKERS=N to handle concurrent requests, which makes this package very short lived**

This contraption can be used as an alternative to the PHP built-in web server in scenarios where you need more than one connection but for some reason can't install a real web server like NGINX, Apache, Lighttpd or Caddy.

**NEVER USE IT IN PRODUCTION.**

Not tested on Windows yet.

Installation as a standalone command
------------------------------------

[](#installation-as-a-standalone-command)

It's distributed as a PHAR executable, just like composer.

```
wget https://github.com/carlosvini/serve2/releases/download/v0.1.2/serve2.phar -O /usr/local/bin/serve2
chmod +x /usr/local/bin/serve2
```

### How to run

[](#how-to-run)

```
cd /my-folder-with-php-code
serve2

# OR:

serve2 --port 8000
```

Installation as a Laravel command
---------------------------------

[](#installation-as-a-laravel-command)

If you have auto-discover enabled:

```
 composer require carlosvini/serve2
```

Otherwise, manually add "CarlosVini\\Serve2\\Serve2ServiceProvider" to config/app.php, in the "providers" array.

### How to run

[](#how-to-run-1)

```
php artisan serve2
```

How it works
------------

[](#how-it-works)

It opens PHP servers and forwards the requests to any of them which is less busy. It tries to close the servers on shutdown but it might fail since it's a hack right now. In this case run "pkill php" to kill the unclosed servers.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

3

Last Release

2200d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/922d7b4b4edb9ef6eed17efb75fd454a2727e6ad8d53fd2ec0d3faf3b8b366e0?d=identicon)[jp7carlos](/maintainers/jp7carlos)

---

Top Contributors

[![carlosvini](https://avatars.githubusercontent.com/u/4670443?v=4)](https://github.com/carlosvini "carlosvini (22 commits)")

---

Tags

phpprocess-managerserverserver

### Embed Badge

![Health badge](/badges/carlosvini-serve2/health.svg)

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

###  Alternatives

[php-mcp/server

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

828280.5k25](/packages/php-mcp-server)[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)[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)
