2017 © Pedro Peláez
 

library roddick

Commands for starting and stopping a php web server in the background

image

smrtr/roddick

Commands for starting and stopping a php web server in the background

  • Monday, April 11, 2016
  • by joegreen88
  • Repository
  • 1 Watchers
  • 0 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

roddick

Start the built-in php web server as a background process., (*1)

Install this package with composer: composer require smrtr/roddick:~1.0., (*2)

Access the cli at vendor/bin/roddick., (*3)

Start server

$ roddick start

Starts the server in a background process., (*4)

By default the server will listen on http://127.0.0.1:8080 and use the current working directory as the document root., (*5)

Usage:
  start [options] [--] [<address>]

Arguments:
  address                <host>:<port> [default: "127.0.0.1"]

Options:
  -p, --port=PORT        Override the port number of the given address
  -d, --docroot=DOCROOT  Document root for the web server
  -r, --router=ROUTER    Custom router script

You may provide the port as part of the address, or using the port option. If you provide both then the port option will override any port defined in the address., (*6)

Stop server

$ roddick stop

Stops the web server process that was started with roddick start., (*7)

Usage:
  stop [options] [--] [<address>]

Arguments:
  address               <host>:<port> [default: "127.0.0.1"]

Options:
  -p, --port=PORT       Override the port number of the given address

The address and port are handled as in the start command., (*8)

Check server

$ roddick status

Checks if a web server is already running., (*9)

Usage:
  status [options] [--] [<address>]

Arguments:
  address               <host>:<port> [default: "127.0.0.1"]

Options:
  -p, --port=PORT       Override the port number of the given address

The address and port are handled as in the start command., (*10)


Acknowledgements

Symfony did this first, but I needed to decouple it from the symfony framework for use in my own testing environments., (*11)

The Versions

11/04 2016

dev-master

9999999-dev

Commands for starting and stopping a php web server in the background

  Sources   Download

The Requires

 

testing php command server process background continuous integration

11/04 2016

1.0.0

1.0.0.0

Commands for starting and stopping a php web server in the background

  Sources   Download

The Requires

 

testing php command server process background continuous integration