chi-teck/web-server

1.0.0 2017-10-01 11:29 UTC

This package is auto-updated.

Last update: 2024-10-26 05:11:16 UTC


README

Console commands for running applications using the PHP built-in web server.

Instalation

Phar

release_url=https://api.github.com/repos/chi-teck/web-server/releases/latest
wget $(wget -qO- $release_url | awk -F'"' '/browser_download_url/ { print $4 }')
chmod +x web.server.phar
sudo mv web.server.phar /usr/local/bin/web.server
web.server --version

Composer

composer require chi-teck/web-server
./vendor/bin/web.server --version

Available commands:

help    Displays help for a command
list    Lists commands
run     Runs a local web server
start   Starts a local web server in the background
status  Outputs the status of the local web server for the given address
stop    Stops the local web server that was started with the server:start command

Credits

This package is built on top of Symfony web server bundle.