Closed alexander-schranz closed 1 year ago
Add serve composer script to start the development php server.
serve
References in Yii and Mezzio Framework:
If a project is using an alternate runner (swoole, roadrunner, ...) the serve script can be adopted to use that one. Also composer serve is easier to write then php -S 127.0.0.1:8000 -t public config/router.php.
composer serve
php -S 127.0.0.1:8000 -t public config/router.php
What's in this PR?
Add
serve
composer script to start the development php server.References in Yii and Mezzio Framework:
Why?
If a project is using an alternate runner (swoole, roadrunner, ...) the serve script can be adopted to use that one. Also
composer serve
is easier to write thenphp -S 127.0.0.1:8000 -t public config/router.php
.Example Usage