iainconnor / PhpCliServerRouter by iainconnor

A simple router for the PHP CLI server and bindings for it to Lumen/Laravel.
1,157
0
2
Package Data
Maintainer Username: iainconnor
Maintainer Contact: iainconnor@gmail.com (Iain Connor)
Package Create Date: 2017-07-10
Package Last Update: 2018-01-19
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:05:22
Package Statistics
Total Downloads: 1,157
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

PHP CLI Server Router

A simple library to expose the PHP CLI Webserver via an Artisan command for use in Laravel and Lumen 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

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

Usage

  1. Add the PhpCliServerRouterServiceProvider in Laravel or Lumen.
  2. Run artisan php-cli-server:up.
  3. Open your browser to http://localhost:8000.