diff --git a/CHANGELOG.md b/CHANGELOG.md index 692b933..bc17580 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,9 @@ Fourth release candidate. subdirectories of each under those, and updating the `composer.json` autoloading directives accordingly. This change will allow new projects to implement a "modular" structure if desired, with a subdirectory per namespace. +- [#41](https://github.com/zendframework/zend-expressive-skeleton/pull/41) adds + the composer script "serve", which fires up the built-in PHP webserver on port + 8080; invoke using `composer serve`. ### Deprecated diff --git a/README.md b/README.md index 606c5eb..23de4e8 100644 --- a/README.md +++ b/README.md @@ -46,5 +46,7 @@ After choosing and installing the packages you want, go to the `` and start PHP's built-in web server to verify installation: ```bash -$ php -S 0.0.0.0:8000 -t public/ +$ composer serve ``` + +You can then browse to http://localhost:8080. diff --git a/composer.json b/composer.json index e343629..3d49be9 100644 --- a/composer.json +++ b/composer.json @@ -47,6 +47,7 @@ ], "cs": "phpcs", "cs-fix": "phpcbf", + "serve": "php -S 0.0.0.0:8080 -t public/", "test": "phpunit" } }