PHPackages                             4lb0/phps - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. 4lb0/phps

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

4lb0/phps
=========

PHP Server: an improvement for the built-in server

v1.2.0(4y ago)117MITShellPHP &gt;=5.4

Since Nov 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/4lb0/phps)[ Packagist](https://packagist.org/packages/4lb0/phps)[ RSS](/packages/4lb0-phps/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (5)Used By (0)

PHP Server
==========

[](#php-server)

[![Usage screenshot](https://user-images.githubusercontent.com/142173/139636053-e3d177a7-1cab-4012-bd17-a203869eaa5a.png)](https://user-images.githubusercontent.com/142173/139636053-e3d177a7-1cab-4012-bd17-a203869eaa5a.png)

An improvement for the [built-in web server](https://www.php.net/manual/en/features.commandline.webserver.php).

It uses 8080 port by default or set option `-r` to use a random port.

Also run [LiveReload](https://www.npmjs.com/package/livereload) if available.

**Usage:**

```
phps [-r] [-t docroot] [router]

```

**Options:**

- `-r, --random` Run PHP and Livereload on random ports.
- `-t, --docroot` Starting with a specific document root directory
- `-h, --help` Show this help

**Set up:**

Use composer

```
composer global require 4lb0/phps

```

Or download the [phps](/phps) file.

**Save parameters in composer.json**

You may add `[-t docroot] [router]` in a custom key `phps` in the `extra` section of your composer.json.

For example if you run it `phps -r -t public app.php` add the following configuration to your composer.json and then run it with just `php -r`

```
"extra": {
  "phps":
    "router": "app.php",
    "docroot": "public/",
    "config": "etc/php.ini",
    "extraExtensions": "scss,phtml"
}

```

**Requirements:**

- PHP version 5.4 or newer versions
- Bash support
- Optional: [LiveReload](https://www.npmjs.com/package/livereload)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

Total

4

Last Release

1629d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25706?v=4)[albo](/maintainers/albo)[@albo](https://github.com/albo)

---

Top Contributors

[![4lb0](https://avatars.githubusercontent.com/u/142173?v=4)](https://github.com/4lb0 "4lb0 (12 commits)")

---

Tags

phpserverutilityutilityserver

### Embed Badge

![Health badge](/badges/4lb0-phps/health.svg)

```
[![Health](https://phpackages.com/badges/4lb0-phps/health.svg)](https://phpackages.com/packages/4lb0-phps)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[mage2tv/magento-cache-clean

This package has been migrated to mage-os/magento-cache-clean. Please switch over at your convenience.

5432.1M3](/packages/mage2tv-magento-cache-clean)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[lodash-php/lodash-php

A port of Lodash to PHP

527719.0k5](/packages/lodash-php-lodash-php)

PHPackages © 2026

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