iainconnor/php-cli-server-router

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

1.0.2 2018-01-19 16:40 UTC

This package is not auto-updated.

Last update: 2024-04-28 01:34:40 UTC


README

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.