PHPackages                             iainconnor/php-cli-server-router - 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. [CLI &amp; Console](/categories/cli)
4. /
5. iainconnor/php-cli-server-router

ActiveLibrary[CLI &amp; Console](/categories/cli)

iainconnor/php-cli-server-router
================================

A simple router for the PHP CLI server and bindings for it to Lumen/Laravel.

1.0.2(8y ago)01.2kMITPHP

Since Jul 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/iainconnor/PhpCliServerRouter)[ Packagist](https://packagist.org/packages/iainconnor/php-cli-server-router)[ RSS](/packages/iainconnor-php-cli-server-router/feed)WikiDiscussions master Synced 6d ago

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

PHP CLI Server Router
=====================

[](#php-cli-server-router)

A simple library to expose the [PHP CLI Webserver](http://php.net/manual/en/features.commandline.webserver.php) via an Artisan command for use in [Laravel](https://www.laravel.com) and [Lumen](https://lumen.laravel.com) applications.

This implementation also enhances the default usage of the webserver by redirecting trailing slashes and allowing file requests to be handled by your application.

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

[](#installation)

From composer, `composer require iainconnor/php-cli-server-router`.

Usage
-----

[](#usage)

1. Add the `PhpCliServerRouterServiceProvider` in [Laravel](https://laravel.com/docs/5.4/providers#registering-providers) or [Lumen](https://lumen.laravel.com/docs/5.4/providers#registering-providers).
2. Run `artisan php-cli-server:up`.
3. Open your browser to `http://localhost:8000`.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3040d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dcfad26ea21638f305d384e29f2dc1d4d89867f99fae31d19dd9d9b9c44a1c3b?d=identicon)[iainconnor](/maintainers/iainconnor)

---

Top Contributors

[![iainconnor](https://avatars.githubusercontent.com/u/4603014?v=4)](https://github.com/iainconnor "iainconnor (3 commits)")

### Embed Badge

![Health badge](/badges/iainconnor-php-cli-server-router/health.svg)

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

###  Alternatives

[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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