sulu / skeleton

Project template for starting your new project based on the Sulu content management system
https://sulu.io
MIT License
261 stars 81 forks source link

Add serve composer script #219

Closed alexander-schranz closed 1 year ago

alexander-schranz commented 1 year ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets fixes -
Related issues/PRs -
License MIT
Documentation PR sulu/sulu-docs#prnum

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 then php -S 127.0.0.1:8000 -t public config/router.php.

Example Usage

composer serve