Skip to content

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

Notifications You must be signed in to change notification settings

iainconnor/PhpCliServerRouter

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages